aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-08-03 17:34:19 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-08-03 17:34:19 +0000
commit865afc96f7af56b511efe62dbae41b0fc17b896d (patch)
treeb63633faa449507707a62dafbc01add4427d7613 /clang/lib/Frontend/InitPreprocessor.cpp
parent839bbacfb2e1b862f0297d8e24c60da4f9e77319 (diff)
downloadllvm-865afc96f7af56b511efe62dbae41b0fc17b896d.zip
llvm-865afc96f7af56b511efe62dbae41b0fc17b896d.tar.gz
llvm-865afc96f7af56b511efe62dbae41b0fc17b896d.tar.bz2
PR7795: Fix the definition of __WCHAR_MAX__ with -fshort-wchar.
llvm-svn: 110126
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index e5a4169..88feca9 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -173,7 +173,7 @@ static void DefineTypeSize(llvm::StringRef MacroName, unsigned TypeWidth,
assert(TypeWidth != 1);
MaxVal = ~0ULL >> (65-TypeWidth);
} else
- MaxVal = ~0LL >> (64-TypeWidth);
+ MaxVal = ~0ULL >> (64-TypeWidth);
Builder.defineMacro(MacroName, llvm::Twine(MaxVal) + ValSuffix);
}