From 8e55bd5bbd5e7e46c48a04fe8f4575b3727e148e Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 6 Mar 2017 23:48:31 +0000 Subject: Set the Int64Type / IntMaxType types correctly for OpenBSD/mips64 llvm-svn: 297098 --- clang/lib/Basic/Targets.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/lib/Basic/Targets.cpp') diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 3616baf61e9..95321ec3813 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -7578,7 +7578,11 @@ public: void setN64ABITypes() { setN32N64ABITypes(); - Int64Type = SignedLong; + if (getTriple().getOS() == llvm::Triple::OpenBSD) { + Int64Type = SignedLongLong; + } else { + Int64Type = SignedLong; + } IntMaxType = Int64Type; LongWidth = LongAlign = 64; PointerWidth = PointerAlign = 64; -- cgit v1.2.3