Skip to content

Commit 053a4fc

Browse files
committed
resolve comment
1 parent dd65e66 commit 053a4fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2604,9 +2604,8 @@ SDValue WebAssemblyTargetLowering::LowerBUILD_VECTOR(SDValue Op,
26042604
// within the expected range during ISel. Check whether the value is in
26052605
// bounds based on the lane bit width and if it is out of bounds, lop
26062606
// off the extra bits.
2607-
auto *Const = dyn_cast<ConstantSDNode>(Lane.getNode());
26082607
uint64_t LaneBits = 128 / Lanes;
2609-
if (Const) {
2608+
if (auto *Const = dyn_cast<ConstantSDNode>(Lane.getNode())) {
26102609
ConstLanes.push_back(DAG.getConstant(
26112610
Const->getAPIntValue().trunc(LaneBits).getZExtValue(),
26122611
SDLoc(Lane), LaneT));

0 commit comments

Comments
 (0)