Skip to content

Commit 58993e2

Browse files
committed
C++: Fix re-evaluation by importing GVN.
1 parent 712418e commit 58993e2

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)