diff --git a/lib/Target/Hexagon/HexagonISelLowering.cpp b/lib/Target/Hexagon/HexagonISelLowering.cpp index 7126977a00f..280140f0092 100644 --- a/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -1920,7 +1920,7 @@ HexagonTargetLowering::validateConstPtrAlignment(SDValue Ptr, Align NeedAlign, return; unsigned Addr = CA->getZExtValue(); Align HaveAlign = - Addr != 0 ? Align(1u << countTrailingZeros(Addr)) : NeedAlign; + Addr != 0 ? Align(1ull << countTrailingZeros(Addr)) : NeedAlign; if (HaveAlign < NeedAlign) { std::string ErrMsg; raw_string_ostream O(ErrMsg);