[clang] d9ff48d - WCharType and WIntType are always signed int on OpenBSD.

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 18 17:00:54 PDT 2020


Author: Brad Smith
Date: 2020-08-18T19:59:54-04:00
New Revision: d9ff48d03817f83d4059b610a776c797308de2e5

URL: https://github.com/llvm/llvm-project/commit/d9ff48d03817f83d4059b610a776c797308de2e5
DIFF: https://github.com/llvm/llvm-project/commit/d9ff48d03817f83d4059b610a776c797308de2e5.diff

LOG: WCharType and WIntType are always signed int on OpenBSD.

Added: 
    

Modified: 
    clang/lib/Basic/Targets/OSTargets.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Basic/Targets/OSTargets.h b/clang/lib/Basic/Targets/OSTargets.h
index f89eb0add553..a2c0fd42f26d 100644
--- a/clang/lib/Basic/Targets/OSTargets.h
+++ b/clang/lib/Basic/Targets/OSTargets.h
@@ -465,6 +465,7 @@ class LLVM_LIBRARY_VISIBILITY OpenBSDTargetInfo : public OSTargetInfo<Target> {
 public:
   OpenBSDTargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
       : OSTargetInfo<Target>(Triple, Opts) {
+    this->WCharType = this->WIntType = this->SignedInt;
     this->IntMaxType = TargetInfo::SignedLongLong;
     this->Int64Type = TargetInfo::SignedLongLong;
     switch (Triple.getArch()) {


        


More information about the cfe-commits mailing list