Skip to content

Commit d9ff48d

Browse files
committed
WCharType and WIntType are always signed int on OpenBSD.
1 parent e7081d1 commit d9ff48d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Basic/Targets/OSTargets.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ 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->WCharType = this->WIntType = this->SignedInt;
468469
this->IntMaxType = TargetInfo::SignedLongLong;
469470
this->Int64Type = TargetInfo::SignedLongLong;
470471
switch (Triple.getArch()) {

0 commit comments

Comments
 (0)