Skip to content

Commit 95bb70f

Browse files
committed
C++: Also add a 'getIndirection' on 'GlobalDef' as well. This will be useful in the next commit.
1 parent fd26ae1 commit 95bb70f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,9 @@ class GlobalDef extends TGlobalDef, SsaDefOrUse {
10061006
global.hasIndexInBlock(block, index, sv)
10071007
}
10081008

1009+
/** Gets the indirection index of this definition. */
1010+
int getIndirection() { result = global.getIndirection() }
1011+
10091012
/** Gets the indirection index of this definition. */
10101013
int getIndirectionIndex() { result = global.getIndirectionIndex() }
10111014

0 commit comments

Comments
 (0)