[llvm] r185237 - Try to unbreak Linux buildbots.

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jun 28 15:54:16 PDT 2013


Author: stoklund
Date: Fri Jun 28 17:54:16 2013
New Revision: 185237

URL: http://llvm.org/viewvc/llvm-project?rev=185237&view=rev
Log:
Try to unbreak Linux buildbots.

Modified:
    llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h

Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h?rev=185237&r1=185236&r2=185237&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h Fri Jun 28 17:54:16 2013
@@ -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





More information about the llvm-commits mailing list