aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-07-15 11:51:38 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-07-15 11:51:38 +0000
commit62277b37dbe479538fe42761562e76ea87762941 (patch)
treeb6f372a13abe43d47bfac0b2250751b0acb5b57c /clang/lib/Frontend/InitPreprocessor.cpp
parent04b8b37f564bdddd758348df8e844f40f2d1627b (diff)
downloadllvm-62277b37dbe479538fe42761562e76ea87762941.zip
llvm-62277b37dbe479538fe42761562e76ea87762941.tar.gz
llvm-62277b37dbe479538fe42761562e76ea87762941.tar.bz2
Make sure int64_t and uint64_t are consistent.
llvm-svn: 213065
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 64b068d..b53fff9 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -232,7 +232,7 @@ static void DefineExactWidthIntType(TargetInfo::IntType Ty,
// Use the target specified int64 type, when appropriate, so that [u]int64_t
// ends up being defined in terms of the correct type.
if (TypeWidth == 64)
- Ty = IsSigned ? TI.getInt64Type() : TI.getIntTypeByWidth(64, false);
+ Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type();
const char *Prefix = IsSigned ? "__INT" : "__UINT";
@@ -254,7 +254,7 @@ static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty,
// Use the target specified int64 type, when appropriate, so that [u]int64_t
// ends up being defined in terms of the correct type.
if (TypeWidth == 64)
- Ty = IsSigned ? TI.getInt64Type() : TI.getIntTypeByWidth(64, false);
+ Ty = IsSigned ? TI.getInt64Type() : TI.getUInt64Type();
const char *Prefix = IsSigned ? "__INT" : "__UINT";
DefineTypeSize(Prefix + Twine(TypeWidth) + "_MAX__", Ty, TI, Builder);