Skip to content

Commit 46b47db

Browse files
committed
C++: Rename IPA branch.
1 parent a7f0966 commit 46b47db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
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(GlobalLikeVariable var, int indirectionIndex) {
37+
TGlobalLikeVariableNode(GlobalLikeVariable var, int indirectionIndex) {
3838
indirectionIndex =
3939
[getMinIndirectionsForType(var.getUnspecifiedType()) .. Ssa::getMaxIndirectionsForType(var.getUnspecifiedType())]
4040
} or
@@ -396,7 +396,7 @@ class Node extends TIRDataFlowNode {
396396
* modeling flow in and out of global variables.
397397
*/
398398
Variable asVariable() {
399-
this = TVariableNode(result, getMinIndirectionsForType(result.getUnspecifiedType()))
399+
this = TGlobalLikeVariableNode(result, getMinIndirectionsForType(result.getUnspecifiedType()))
400400
}
401401

402402
/**
@@ -406,7 +406,7 @@ class Node extends TIRDataFlowNode {
406406
*/
407407
Variable asIndirectVariable(int indirectionIndex) {
408408
indirectionIndex > getMinIndirectionsForType(result.getUnspecifiedType()) and
409-
this = TVariableNode(result, indirectionIndex)
409+
this = TGlobalLikeVariableNode(result, indirectionIndex)
410410
}
411411

412412
/** Gets an indirection of this node's underlying variable, if any. */
@@ -1755,11 +1755,11 @@ class DefinitionByReferenceNode extends IndirectArgumentOutNode {
17551755
* value of that variable at some particular point. This can be used for
17561756
* modeling flow in and out of global variables.
17571757
*/
1758-
class VariableNode extends Node, TVariableNode {
1758+
class VariableNode extends Node, TGlobalLikeVariableNode {
17591759
Variable v;
17601760
int indirectionIndex;
17611761

1762-
VariableNode() { this = TVariableNode(v, indirectionIndex) }
1762+
VariableNode() { this = TGlobalLikeVariableNode(v, indirectionIndex) }
17631763

17641764
/** Gets the variable corresponding to this node. */
17651765
Variable getVariable() { result = v }

0 commit comments

Comments
 (0)