diff --git a/include/llvm/Analysis/BlockFrequencyImpl.h b/include/llvm/Analysis/BlockFrequencyImpl.h index c9067a0721b..ae3eccf8d7c 100644 --- a/include/llvm/Analysis/BlockFrequencyImpl.h +++ b/include/llvm/Analysis/BlockFrequencyImpl.h @@ -235,8 +235,8 @@ class BlockFrequencyImpl { // // Iterations = 1 / ExitProb // - uint64_t D = std::max(getBlockFreq(Head).getFrequency(), 1ull); - uint64_t N = std::max(BackFreq.getFrequency(), 1ull); + uint64_t D = std::max(getBlockFreq(Head).getFrequency(), UINT64_C(1)); + uint64_t N = std::max(BackFreq.getFrequency(), UINT64_C(1)); if (N < D) N = D - N; else