diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-02-25 15:04:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-02-25 15:04:01 +0000 |
commit | 6afdc1cea26a7ac3918106c7162a0323c711e4ad (patch) | |
tree | 8bb9c91be2d900fcce9106d7e778e9935268ca01 /gnu/llvm | |
parent | b4555fef0e0c3598afdf7c43608ca23f6218b772 (diff) |
Fix the types used on aarch64 to match what we have in <sys/types.h>.
From Brad Smith.
Diffstat (limited to 'gnu/llvm')
-rw-r--r-- | gnu/llvm/tools/clang/lib/Basic/Targets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/llvm/tools/clang/lib/Basic/Targets.cpp b/gnu/llvm/tools/clang/lib/Basic/Targets.cpp index 009536a6bda..f6db9047c34 100644 --- a/gnu/llvm/tools/clang/lib/Basic/Targets.cpp +++ b/gnu/llvm/tools/clang/lib/Basic/Targets.cpp @@ -5925,7 +5925,8 @@ class AArch64TargetInfo : public TargetInfo { public: AArch64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) : TargetInfo(Triple), ABI("aapcs") { - if (getTriple().getOS() == llvm::Triple::NetBSD) { + if (getTriple().getOS() == llvm::Triple::NetBSD || + getTriple().getOS() == llvm::Triple::OpenBSD) { WCharType = SignedInt; // NetBSD apparently prefers consistency across ARM targets to consistency |