Skip to content

Commit 80fc9bc

Browse files
committed
[Hexagon] Use getSigned() for signed value
1 parent b0bd8bd commit 80fc9bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Hexagon/HexagonISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,7 +2527,7 @@ HexagonTargetLowering::getBuildVectorConstInts(ArrayRef<SDValue> Values,
25272527
// Make sure to always cast to IntTy.
25282528
if (auto *CN = dyn_cast<ConstantSDNode>(V.getNode())) {
25292529
const ConstantInt *CI = CN->getConstantIntValue();
2530-
Consts[i] = ConstantInt::get(IntTy, CI->getValue().getSExtValue());
2530+
Consts[i] = ConstantInt::getSigned(IntTy, CI->getValue().getSExtValue());
25312531
} else if (auto *CN = dyn_cast<ConstantFPSDNode>(V.getNode())) {
25322532
const ConstantFP *CF = CN->getConstantFPValue();
25332533
APInt A = CF->getValueAPF().bitcastToAPInt();

0 commit comments

Comments
 (0)