Skip to content

Commit bc17df5

Browse files
authored
Merge pull request #7830 from MathiasVP/fix-ir-reevaluation-in-return-stack-allocated-memory
C++: Fix re-evaluation in `cpp/return-stack-allocated-memory`
2 parents ab7fd89 + 58993e2 commit bc17df5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpp/ql/src/Likely Bugs/Memory Management/ReturnStackAllocatedMemory.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
*/
1515

1616
import cpp
17+
// We don't actually use the global value numbering library in this query, but without it we end up
18+
// recomputing the IR.
19+
private import semmle.code.cpp.valuenumbering.GlobalValueNumbering
1720
import semmle.code.cpp.ir.IR
1821
import semmle.code.cpp.ir.dataflow.DataFlow::DataFlow
1922

0 commit comments

Comments
 (0)