We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42104ec commit d89fe63Copy full SHA for d89fe63
1 file changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImpl.qll
@@ -1156,6 +1156,12 @@ class Definition extends SsaImpl::Definition {
1156
)
1157
}
1158
1159
+ Parameter asParameter() {
1160
+ this.getIndirectionIndex() = 0 and
1161
+ getDefImpl(this).getValue().asInstruction().(InitializeParameterInstruction).getParameter() =
1162
+ result
1163
+ }
1164
+
1165
/**
1166
* Gets an `Operand` that represents an indirect use of this definition.
1167
*
0 commit comments