C++: Don't generate dataflow nodes for instructions inside summarized callables.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-01-24 20:05:19 +00:00
parent ccb28ed0b3
commit fc39df28b0

View File

@@ -41,7 +41,9 @@ predicate ignoreInstruction(Instruction instr) {
instr instanceof AliasedUseInstruction or
instr instanceof InitializeNonLocalInstruction or
instr instanceof ReturnIndirectionInstruction or
instr instanceof UninitializedGroupInstruction
instr instanceof UninitializedGroupInstruction or
// We exclude instruction belonging to functions that have a summary.
instr.getEnclosingFunction() = any(SummarizedCallable sc).getUnderlyingCallable()
)
}