[MSVC] Fix check for wchar_t type in case of -fno-wchar
authorDmitry Polukhin <dmitry.polukhin@gmail.com>
Thu, 14 Apr 2016 09:52:06 +0000 (09:52 +0000)
committerDmitry Polukhin <dmitry.polukhin@gmail.com>
Thu, 14 Apr 2016 09:52:06 +0000 (09:52 +0000)
commit9d64f7264035d8d573abed95a15a07cb31796063
tree4c69862a6dfac52774617c612b8f9ee569bf1a02
parenta212c58db07b31311e2e7f6a76bf444ccc482f16
[MSVC] Fix check for wchar_t type in case of -fno-wchar

The example below should work identically with and without compiler native
wchar_t support.

void foo(wchar_t * t = L"");

Differential Revision: http://reviews.llvm.org/D19056

llvm-svn: 266287
clang/lib/Sema/SemaExprCXX.cpp
clang/test/SemaCXX/no-wchar.cpp