From: Chris Lattner Date: Wed, 24 Jun 2009 17:12:15 +0000 (+0000) Subject: fix the type of wchar_t for windows, PR4417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85de9e75ecce165374faf20d7b4e843a1f63e720;p=clang fix the type of wchar_t for windows, PR4417 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74083 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 1d69e4e96e..9910e28fcd 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -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-"