[PATCH] size_t is unsigned long on Bitrig
Patrick Wildt
mail at patrick-wildt.de
Mon Jun 23 05:55:44 PDT 2014
Hi,
even on AAPCS size_t is unsigned long on Bitrig.
Best regards,
Patrick
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 4fdbc24..3bd2515 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -3510,8 +3510,9 @@ class ARMTargetInfo : public TargetInfo {
DoubleAlign = LongLongAlign = LongDoubleAlign = SuitableAlign = 64;
const llvm::Triple &T = getTriple();
- // size_t is unsigned long on Darwin and NetBSD.
- if (T.isOSDarwin() || T.getOS() == llvm::Triple::NetBSD)
+ // size_t is unsigned long on Darwin, NetBSD and Bitrig.
+ if (T.isOSDarwin() || T.getOS() == llvm::Triple::NetBSD ||
+ T.getOS() == llvm::Triple::Bitrig)
SizeType = UnsignedLong;
else
SizeType = UnsignedInt;
More information about the cfe-commits
mailing list