Skip to content

Commit a39a6ea

Browse files
committed
C++: Don't use indirect instructions for asUnitialized.
1 parent ce02de4 commit a39a6ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ class UninitializedNode extends Node {
938938

939939
UninitializedNode() {
940940
exists(Ssa::Def def |
941+
def.getIndirectionIndex() = 0 and
941942
def.getValue().asInstruction() instanceof UninitializedInstruction and
942943
Ssa::nodeToDefOrUse(this, def, _) and
943944
v = def.getSourceVariable().getBaseVariable().(Ssa::BaseIRVariable).getIRVariable().getAst()

0 commit comments

Comments
 (0)