diff options
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 899b1e6014b..b71bc8b0639 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -3706,15 +3706,17 @@ public: : TargetInfo(Triple), ABI("aapcs-linux"), CPU("arm1136j-s"), FPMath(FP_Default), IsAAPCS(true) { BigEndian = false; - SizeType = UnsignedInt; - PtrDiffType = SignedInt; switch (getTriple().getOS()) { case llvm::Triple::NetBSD: + SizeType = UnsignedLong; + PtrDiffType = SignedLong; WCharType = SignedInt; break; default: // AAPCS 7.1.1, ARM-Linux ABI 2.4: type of wchar_t is unsigned int. WCharType = UnsignedInt; + SizeType = UnsignedInt; + PtrDiffType = SignedInt; break; } |