Skip to content

Use TestingSrcLocation in TaintConfigTest instead of getInstruction(N)#818

Merged
fabianbs96 merged 2 commits intodevelopmentfrom
f-UpdateTaintConfigTest
Mar 25, 2026
Merged

Use TestingSrcLocation in TaintConfigTest instead of getInstruction(N)#818
fabianbs96 merged 2 commits intodevelopmentfrom
f-UpdateTaintConfigTest

Conversation

@fabianbs96
Copy link
Copy Markdown
Member

Continue in the process of eliminating metadata-ids from PhASAR's unittests

Replace all brittle integer-ID-based IR.getInstruction(N) calls with
source-coordinate-based testingLocInIR() lookups using the
TestingSrcLocation facility from TestUtils/SrcCodeLocationEntry.h.
Also remove the now-unnecessary ValueAnnotationPass include and
resetValueID() call from SetUp().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fabianbs96 fabianbs96 self-assigned this Mar 23, 2026
@fabianbs96 fabianbs96 requested a review from MMory as a code owner March 23, 2026 18:15
@fabianbs96 fabianbs96 added this to the PhASAR 2603 milestone Mar 23, 2026
@fabianbs96 fabianbs96 merged commit 2605fa9 into development Mar 25, 2026
14 checks passed
@fabianbs96 fabianbs96 deleted the f-UpdateTaintConfigTest branch March 25, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant