From: Ellis Hoag Date: Fri, 19 Mar 2021 23:24:16 +0000 (-0700) Subject: Port D97640 to llvm/include/llvm/ProfileData/InstrProfData.inc X-Git-Tag: llvmorg-14-init~11845 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d90270e9e800d22d4d4dca1bfad05d6a491b42f0;p=platform%2Fupstream%2Fllvm.git Port D97640 to llvm/include/llvm/ProfileData/InstrProfData.inc Differential Revision: https://reviews.llvm.org/D98982 --- diff --git a/llvm/include/llvm/ProfileData/InstrProfData.inc b/llvm/include/llvm/ProfileData/InstrProfData.inc index 6126a61..ffc7dee 100644 --- a/llvm/include/llvm/ProfileData/InstrProfData.inc +++ b/llvm/include/llvm/ProfileData/InstrProfData.inc @@ -873,7 +873,7 @@ InstrProfGetRangeRepValue(uint64_t Value) { return Value; else // Otherwise, take to the previous power of two + 1. - return (1 << (64 - InstProfClzll(Value) - 1)) + 1; + return (UINT64_C(1) << (64 - InstProfClzll(Value) - 1)) + 1; } /* Return true if the range that an (observed) memop size value belongs to has