Skip to content

Commit d09901e

Browse files
brad0zmodem
authored andcommitted
int64_t and intmax_t are always (signed) long long on OpenBSD.
(cherry picked from commit 92e82a2)
1 parent c89e9d6 commit d09901e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ class LLVM_LIBRARY_VISIBILITY OpenBSDTargetInfo : public OSTargetInfo<Target> {
465465
public:
466466
OpenBSDTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
467467
: OSTargetInfo<Target>(Triple, Opts) {
468+
this->IntMaxType = TargetInfo::SignedLongLong;
469+
this->Int64Type = TargetInfo::SignedLongLong;
468470
switch (Triple.getArch()) {
469471
case llvm::Triple::x86:
470472
case llvm::Triple::x86_64:

0 commit comments

Comments
 (0)