Skip to content

Commit aff03bd

Browse files
committed
C++: Delete confusing class synonym.
1 parent f9732c7 commit aff03bd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ class ContentSet instanceof Content {
22922292

22932293
pragma[nomagic]
22942294
private predicate guardControlsPhiInput(
2295-
IRGuardCondition g, boolean branch, Ssa::Definition def, IRBlock input, Ssa::PhiNode phi
2295+
IRGuardCondition g, boolean branch, Ssa::DefinitionExt def, IRBlock input, Ssa::PhiNode phi
22962296
) {
22972297
phi.hasInputFromBlock(def, _, _, _, input) and
22982298
(

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ module SsaCached {
10591059
}
10601060

10611061
cached
1062-
Definition phiHasInputFromBlockExt(PhiNode phi, IRBlock bb) {
1062+
DefinitionExt phiHasInputFromBlockExt(PhiNode phi, IRBlock bb) {
10631063
SsaImpl::phiHasInputFromBlockExt(phi, result, bb)
10641064
}
10651065

@@ -1116,12 +1116,12 @@ class PhiNode extends SsaImpl::DefinitionExt {
11161116
}
11171117

11181118
/** Gets a definition that is an input to this phi node. */
1119-
final Definition getAnInput() { this.hasInputFromBlock(result, _, _, _, _) }
1119+
final DefinitionExt getAnInput() { this.hasInputFromBlock(result, _, _, _, _) }
11201120
}
11211121

11221122
/** An static single assignment (SSA) definition. */
11231123
class DefinitionExt extends SsaImpl::DefinitionExt {
1124-
private Definition getAPhiInputOrPriorDefinition() { result = this.(PhiNode).getAnInput() }
1124+
private DefinitionExt getAPhiInputOrPriorDefinition() { result = this.(PhiNode).getAnInput() }
11251125

11261126
/**
11271127
* Gets a definition that ultimately defines this SSA definition and is
@@ -1182,6 +1182,4 @@ class DefinitionExt extends SsaImpl::DefinitionExt {
11821182
}
11831183
}
11841184

1185-
class Definition = SsaImpl::Definition;
1186-
11871185
import SsaCached

0 commit comments

Comments
 (0)