[llvm-branch-commits] [clang] a2fa88a - WCharType and WIntType are always signed int on OpenBSD.

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 20 04:18:58 PDT 2020


Author: Brad Smith
Date: 2020-08-20T13:16:51+02:00
New Revision: a2fa88a05f40d8ba96e96b48e0f2fcd091420e54

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

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

(cherry picked from commit d9ff48d03817f83d4059b610a776c797308de2e5)

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 8d56f561ba9f..2a9e4f91d478 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 llvm-branch-commits mailing list