Skip to content

Commit 2e9c0fc

Browse files
committed
C++: Cache the TIRDataFlowNode newtype
1 parent 834263f commit 2e9c0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ private import semmle.code.cpp.ir.IR
1111
private import semmle.code.cpp.controlflow.IRGuards
1212
private import semmle.code.cpp.models.interfaces.DataFlow
1313

14+
cached
1415
private newtype TIRDataFlowNode =
1516
TInstructionNode(Instruction i) or
1617
TOperandNode(Operand op) or
@@ -524,7 +525,6 @@ private predicate getFieldSizeOfClass(Class c, Type type, int size) {
524525
)
525526
}
526527

527-
cached
528528
private predicate simpleOperandLocalFlowStep(Instruction iFrom, Operand opTo) {
529529
opTo.getAnyDef() = iFrom
530530
}

0 commit comments

Comments
 (0)