]> granicus.if.org Git - clang/commitdiff
fix the type of wchar_t for windows, PR4417
authorChris Lattner <sabre@nondot.org>
Wed, 24 Jun 2009 17:12:15 +0000 (17:12 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Jun 2009 17:12:15 +0000 (17:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74083 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 1d69e4e96efaee68cda22e0c17db515ffac8e98a..9910e28fcda9e65d340cda94329c9a09c8672fbe 100644 (file)
@@ -930,7 +930,7 @@ public:
   WindowsX86_32TargetInfo(const std::string& triple)
     : X86_32TargetInfo(triple) {
     TLSSupported = false;
-    WCharType = SignedShort;
+    WCharType = UnsignedShort;
     WCharWidth = WCharAlign = 16;
     DoubleAlign = LongLongAlign = 64;
     DescriptionString = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-"