fix error check in assert

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Seth Cantrell 2012-04-18 00:40:23 +00:00
parent 41c3e9a326
commit 575fcb38de

View File

@ -21,7 +21,7 @@ namespace {
assert(s.size()==strlen(s.c_str()));
size_t size = mbstowcs_l(NULL,s.c_str(),0,l);
assert(size>=0);
assert(size!=(size_t)-1);
if (size==0)
return 0;
llvm::SmallVector<wchar_t,200> ws(size);