aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-15 21:20:13 +0000
committerChris Lattner <sabre@nondot.org>2009-02-15 21:20:13 +0000
commit736166b38235cf6d0ffb67638960d95fb2afcbd6 (patch)
tree8970775f35c085aeb927ba61ec67a73a0f00cae4
parent081927bbabf1b5c28ce695e93472f8bcd42b7c0d (diff)
fix build on systems where uint64_t != unsigned long long
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64605 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index f724524f02..9659b94dd0 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -377,7 +377,7 @@ ASTContext::getTypeInfo(const Type *T) {
// 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: