Skip to content

Commit f3c788d

Browse files
author
Robert Marsh
authored
Merge pull request #2843 from jbj/ValueNumbering-import-order
C++: Change import order for stable cache checksum
2 parents 8d21692 + 928bdba commit f3c788d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
*/
44

55
private import cpp
6+
// The `ValueNumbering` library has to be imported right after `cpp` to ensure
7+
// that the cached IR gets the same checksum here as it does in queries that use
8+
// `ValueNumbering` without `DataFlow`.
9+
private import semmle.code.cpp.ir.ValueNumbering
610
private import semmle.code.cpp.ir.IR
711
private import semmle.code.cpp.controlflow.IRGuards
8-
private import semmle.code.cpp.ir.ValueNumbering
912
private import semmle.code.cpp.models.interfaces.DataFlow
1013

1114
private newtype TIRDataFlowNode =

0 commit comments

Comments
 (0)