summaryrefslogtreecommitdiff
path: root/gnu/llvm
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-02-25 15:04:01 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-02-25 15:04:01 +0000
commit6afdc1cea26a7ac3918106c7162a0323c711e4ad (patch)
tree8bb9c91be2d900fcce9106d7e778e9935268ca01 /gnu/llvm
parentb4555fef0e0c3598afdf7c43608ca23f6218b772 (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.cpp3
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