Skip to content

Commit e053d3e

Browse files
committed
Go: Refactor to reduce duplication
1 parent 67b2034 commit e053d3e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎go/ql/lib/semmle/go/dataflow/internal/DataFlowUtil.qll‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,7 @@ module ParameterizedBarrierGuardValue<
430430
private module WrappedGuardChecks = ParameterizedValidationWrapper<P, guardChecks/4>;
431431

432432
/** Gets a node that is safely guarded by the given guard check. */
433-
Node getABarrierNode(P param) {
434-
exists(Guard guard, GuardValue value, SsaWithFields var |
435-
result = pragma[only_bind_out](var).getAUse()
436-
|
437-
guards(_, guard, value, _, var, param) and
438-
pragma[only_bind_out](guard).valueControls(result.getBasicBlock(), value)
439-
)
440-
}
433+
Node getABarrierNode(P param) { result = getABarrierNodeForGuard(_, param) }
441434

442435
/**
443436
* Gets a node that is safely guarded by the given guard check.

0 commit comments

Comments
 (0)