Skip to content

Commit c511cc3

Browse files
author
Dave Bartolomeo
committed
C++: Better caching for getPrimaryInstructionForSideEffect()
1 parent 0ae98e7 commit c511cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/IRConstruction.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ private module Cached {
392392
}
393393

394394
cached
395-
Instruction getPrimaryInstructionForSideEffect(Instruction instruction) {
395+
Instruction getPrimaryInstructionForSideEffect(SideEffectInstruction instruction) {
396396
exists(TranslatedElement element, InstructionTag tag |
397397
instructionOrigin(instruction, element, tag) and
398398
result = element.getPrimaryInstructionForSideEffect(tag)

0 commit comments

Comments
 (0)