projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an --enable-backtraces option to configure to determine
[oota-llvm.git]
/
lib
/
Support
/
LocaleXlocale.inc
diff --git
a/lib/Support/LocaleXlocale.inc
b/lib/Support/LocaleXlocale.inc
index c3f3e4e092c3393bd640e4c90f0e5e059a1387d8..f595e7c582cacf3de96946cddd50a045bf7235cc 100644
(file)
--- a/
lib/Support/LocaleXlocale.inc
+++ b/
lib/Support/LocaleXlocale.inc
@@
-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);