Skip to content

Commit 480e631

Browse files
committed
Use injects
1 parent 32d4595 commit 480e631

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎go/ql/lib/semmle/go/Expr.qll‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module;
66

77
import go
88
private import semmle.go.controlflow.ControlFlowGraphImpl
9-
private import semmle.go.controlflow.IR
109

1110
/**
1211
* An expression.
@@ -20,7 +19,7 @@ private import semmle.go.controlflow.IR
2019
*/
2120
class Expr extends @expr, ExprParent {
2221
/** Gets the control-flow node associated with this expression. */
23-
CfgImpl::Cfg::ControlFlowNode getControlFlowNode() { result = IR::evalExprInstruction(this) }
22+
CfgImpl::Cfg::ControlFlowNode getControlFlowNode() { result.injects(this) }
2423

2524
/** Gets the basic block containing this expression. */
2625
CfgImpl::Cfg::BasicBlock getBasicBlock() { result = this.getControlFlowNode().getBasicBlock() }

0 commit comments

Comments
 (0)