]> granicus.if.org Git - clang/commitdiff
Fix the type of wchar_t on Solaris.
authorDavid Chisnall <csdavec@swan.ac.uk>
Wed, 28 Mar 2012 18:04:14 +0000 (18:04 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Wed, 28 Mar 2012 18:04:14 +0000 (18:04 +0000)
Patch by Dmitri Shubin!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153585 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 7442432975f981d2e2e3aeb65d12c9d76e0a7253..73bd2b6789bcc902c7d403ce9e6fd2ee62c0e49f 100644 (file)
@@ -509,7 +509,7 @@ public:
   SolarisTargetInfo(const std::string& triple)
     : OSTargetInfo<Target>(triple) {
     this->UserLabelPrefix = "";
-    this->WCharType = this->SignedLong;
+    this->WCharType = this->SignedInt;
     // FIXME: WIntType should be SignedLong
   }
 };