diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp index 1d3d2ea8c557..e29dab266ab2 100644 --- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp @@ -1372,7 +1372,7 @@ void HexagonFrameLowering::processFunctionBeforeFrameFinalized( unsigned A = std::max(MFI.getObjectAlignment(i), 8U); MFI.setObjectAlignment(i, 8); LFS = alignTo(LFS+S, A); - MFI.mapLocalFrameObject(i, -LFS); + MFI.mapLocalFrameObject(i, -static_cast(LFS)); } MFI.setLocalFrameSize(LFS);