Skip to content

Commit dc291ff

Browse files
committed
Address code review
1 parent 3f9ad14 commit dc291ff

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ module Public {
621621
* Gets the uninitialized local variable corresponding to this node behind
622622
* the given levels of indirection, if any.
623623
*/
624-
LocalVariable asIndirectUninitialized(int indirectionIndex) {
624+
LocalVariable asIndirectUninitialized(int index) {
625625
exists(IndirectUninitializedNode indirectUninitializedNode |
626626
this = indirectUninitializedNode and
627-
indirectUninitializedNode.getIndirectionIndex() = indirectionIndex
627+
indirectUninitializedNode.getIndirectionIndex() = index
628628
|
629629
result = indirectUninitializedNode.getLocalVariable()
630630
)
@@ -808,9 +808,6 @@ module Public {
808808
/**
809809
* The value of an uninitialized local variable behind one or more levels of
810810
* indirection, viewed as a node in a data flow graph.
811-
*
812-
* NOTE: For the direct value of the uninitialized local variable, see
813-
* `UninitializedNode`.
814811
*/
815812
class IndirectUninitializedNode extends AbstractUninitializedNode {
816813
IndirectUninitializedNode() { indirectionIndex > 0 }

0 commit comments

Comments
 (0)