Skip to content

Commit 4503c62

Browse files
committed
C++: Implement copilot suggestions.
1 parent 28fec0c commit 4503c62

File tree

1 file changed

+3
-3
lines changed
  • cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import SsaImplCommon
1616

1717
private module SourceVariables {
1818
/**
19-
* Holds if `store` is the `StoreInstruction` generated by an postfix
19+
* Holds if `store` is the `StoreInstruction` generated by n postfix
2020
* increment or decrement operation `e`, and `postCrement` is the operand
2121
* that represents the use of the evaluated value of `e`.
2222
*/
@@ -686,15 +686,15 @@ class FinalParameterUse extends UseImpl, TFinalParameterUse {
686686
}
687687

688688
pragma[nomagic]
689-
private predicate hasBaseSourceVariableAndIndirectrion(BaseIRVariable v, int indirection) {
689+
private predicate hasBaseSourceVariableAndIndirection(BaseIRVariable v, int indirection) {
690690
v.getIRVariable().getAst() = p and
691691
indirection = this.getIndirection()
692692
}
693693

694694
override NormalSourceVariable getSourceVariable() {
695695
exists(BaseIRVariable v, int indirection |
696696
sourceVariableHasBaseAndIndex(result, v, indirection) and
697-
this.hasBaseSourceVariableAndIndirectrion(v, indirection)
697+
this.hasBaseSourceVariableAndIndirection(v, indirection)
698698
)
699699
}
700700
}

0 commit comments

Comments
 (0)