Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a91e85

Browse files
author
Robert Marsh
committed
C++: fix UseImpl after merge conflict
1 parent 3648f26 commit 6a91e85

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ abstract private class OperandBasedUse extends UseImpl {
339339
operand.getUse() = block.getInstruction(index)
340340
}
341341

342+
final Operand getOperand() {
343+
result = operand
344+
}
345+
342346
final override Cpp::Location getLocation() { result = operand.getLocation() }
343347
}
344348

@@ -538,7 +542,7 @@ private predicate globalDefToUse(GlobalDef globalDef, UseOrPhi useOrPhi) {
538542
}
539543

540544
private predicate useToNode(UseOrPhi use, Node nodeTo) {
541-
exists(UseImpl useImpl |
545+
exists(OperandBasedUse useImpl |
542546
useImpl = use.asDefOrUse() and
543547
nodeHasOperand(nodeTo, useImpl.getOperand(), useImpl.getIndirectionIndex())
544548
)

0 commit comments

Comments
 (0)