[cfe-commits] r153585 - /cfe/trunk/lib/Basic/Targets.cpp

David Chisnall csdavec at swan.ac.uk
Wed Mar 28 11:04:15 PDT 2012


Author: theraven
Date: Wed Mar 28 13:04:14 2012
New Revision: 153585

URL: http://llvm.org/viewvc/llvm-project?rev=153585&view=rev
Log:
Fix the type of wchar_t on Solaris.

Patch by Dmitri Shubin!


Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=153585&r1=153584&r2=153585&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Mar 28 13:04:14 2012
@@ -509,7 +509,7 @@
   SolarisTargetInfo(const std::string& triple)
     : OSTargetInfo<Target>(triple) {
     this->UserLabelPrefix = "";
-    this->WCharType = this->SignedLong;
+    this->WCharType = this->SignedInt;
     // FIXME: WIntType should be SignedLong
   }
 };





More information about the cfe-commits mailing list