Skip to content

Commit a7f0966

Browse files
committed
C++: Restrict 'VariableNode's to only be global-like variables (which is the only place where use them for).
1 parent ca1a27d commit a7f0966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private import Node0ToString
3434
cached
3535
private newtype TIRDataFlowNode =
3636
TNode0(Node0Impl node) { DataFlowImplCommon::forceCachingInSameStage() } or
37-
TVariableNode(Variable var, int indirectionIndex) {
37+
TVariableNode(GlobalLikeVariable var, int indirectionIndex) {
3838
indirectionIndex =
3939
[getMinIndirectionsForType(var.getUnspecifiedType()) .. Ssa::getMaxIndirectionsForType(var.getUnspecifiedType())]
4040
} or

0 commit comments

Comments
 (0)