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()) { _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits