Skip to content

Commit 92e82a2

Browse files
committed
int64_t and intmax_t are always (signed) long long on OpenBSD.
1 parent 3a34228 commit 92e82a2

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)