summaryrefslogtreecommitdiff
path: root/lib/Basic/Targets/Sparc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Basic/Targets/Sparc.h')
-rw-r--r--lib/Basic/Targets/Sparc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/Targets/Sparc.h b/lib/Basic/Targets/Sparc.h
index af2189f214687..5ae305bffb43a 100644
--- a/lib/Basic/Targets/Sparc.h
+++ b/lib/Basic/Targets/Sparc.h
@@ -199,7 +199,7 @@ public:
LongWidth = LongAlign = PointerWidth = PointerAlign = 64;
// OpenBSD uses long long for int64_t and intmax_t.
- if (getTriple().getOS() == llvm::Triple::OpenBSD)
+ if (getTriple().isOSOpenBSD())
IntMaxType = SignedLongLong;
else
IntMaxType = SignedLong;