diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-03-30 13:50:21 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2015-03-30 13:50:21 +0000 |
commit | 881497ac2905a616b69f5ce36847169de1c391c1 (patch) | |
tree | 6ec9b2ff97acb03bd4966fc3e132ad25452c6721 /clang/lib/Basic/Targets.cpp | |
parent | 759449c76a913922fde0151ce20ed953a74435b4 (diff) | |
download | bcm5719-llvm-881497ac2905a616b69f5ce36847169de1c391c1.tar.gz bcm5719-llvm-881497ac2905a616b69f5ce36847169de1c391c1.zip |
[SystemZ] Fix definition of IntMaxType / Int64Type
Like on other 64-bit platforms, Int64Type should be SignedLong
on SystemZ, not SignedLongLong as per default. This could cause
ABI incompatibilities in certain cases (e.g. name mangling).
llvm-svn: 233544
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 7cb6480c2c7..0034ed83846 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5404,6 +5404,8 @@ class SystemZTargetInfo : public TargetInfo { public: SystemZTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { + IntMaxType = SignedLong; + Int64Type = SignedLong; TLSSupported = true; IntWidth = IntAlign = 32; LongWidth = LongLongWidth = LongAlign = LongLongAlign = 64; |