Skip to content

Commit 9d4c10f

Browse files
Update SelectionDAG.cpp
1 parent d236864 commit 9d4c10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6823,7 +6823,7 @@ SDValue SelectionDAG::FoldConstantArithmetic(unsigned Opcode, const SDLoc &DL,
68236823
ScalarOps.push_back(getUNDEF(OpVT));
68246824
continue;
68256825
}
6826-
APInt Val = cast<ConstantSDNode>(Op)->getAPIntValue();
6826+
const APInt &Val = cast<ConstantSDNode>(Op)->getAPIntValue();
68276827
ScalarOps.push_back(SignExtendInReg(std::move(Val), OpVT));
68286828
}
68296829
return getBuildVector(VT, DL, ScalarOps);

0 commit comments

Comments
 (0)