summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-07-18 16:39:12 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-07-18 16:39:12 +0000
commitc38db0b38ae639cf72d378fceee28ed7d9d6bf55 (patch)
tree95c0bf57eff0eeb407efe93e12f4e9f779d068b6
parent92fa988154332a3bea8601d1460a2804ae7fee15 (diff)
int64_t and intmax_t are always (signed) long long on OpenBSD.
ok deraadt@
-rw-r--r--gnu/llvm/tools/clang/lib/Basic/Targets/OSTargets.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/llvm/tools/clang/lib/Basic/Targets/OSTargets.h b/gnu/llvm/tools/clang/lib/Basic/Targets/OSTargets.h
index 8c1151436a6..7ed06a4c5f6 100644
--- a/gnu/llvm/tools/clang/lib/Basic/Targets/OSTargets.h
+++ b/gnu/llvm/tools/clang/lib/Basic/Targets/OSTargets.h
@@ -435,6 +435,8 @@ protected:
public:
OpenBSDTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
: OSTargetInfo<Target>(Triple, Opts) {
+ this->IntMaxType = TargetInfo::SignedLongLong;
+ this->Int64Type = TargetInfo::SignedLongLong;
switch (Triple.getArch()) {
case llvm::Triple::x86:
case llvm::Triple::x86_64: