mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
C++: Better caching for getPrimaryInstructionForSideEffect()
This commit is contained in:
@@ -392,7 +392,7 @@ private module Cached {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cached
|
cached
|
||||||
Instruction getPrimaryInstructionForSideEffect(Instruction instruction) {
|
Instruction getPrimaryInstructionForSideEffect(SideEffectInstruction instruction) {
|
||||||
exists(TranslatedElement element, InstructionTag tag |
|
exists(TranslatedElement element, InstructionTag tag |
|
||||||
instructionOrigin(instruction, element, tag) and
|
instructionOrigin(instruction, element, tag) and
|
||||||
result = element.getPrimaryInstructionForSideEffect(tag)
|
result = element.getPrimaryInstructionForSideEffect(tag)
|
||||||
|
|||||||
Reference in New Issue
Block a user