[cfe-commits] r64605 - /cfe/trunk/lib/AST/ASTContext.cpp

Chris Lattner sabre at nondot.org
Sun Feb 15 13:20:13 PST 2009


Author: lattner
Date: Sun Feb 15 15:20:13 2009
New Revision: 64605

URL: http://llvm.org/viewvc/llvm-project?rev=64605&view=rev
Log:
fix build on systems where uint64_t != unsigned long long

Modified:
    cfe/trunk/lib/AST/ASTContext.cpp

Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=64605&r1=64604&r2=64605&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Sun Feb 15 15:20:13 2009
@@ -377,7 +377,7 @@
     // FIXME: This isn't precisely correct; the width/alignment should depend
     // on the available types for the target
     Width = cast<FixedWidthIntType>(T)->getWidth();
-    Width = std::max(llvm::NextPowerOf2(Width - 1), 8ULL);
+    Width = std::max(llvm::NextPowerOf2(Width - 1), (uint64_t)8);
     Align = Width;
     break;
   case Type::ASQual:





More information about the cfe-commits mailing list