summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-04-18 00:40:23 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-04-18 00:40:23 +0000
commit3d013bccfa6a71de097ce4945007a8e294dfb2bf (patch)
tree335303b0aca992f22abfbca448810de443446ab6 /llvm/lib/Support
parent246034465c53271ee581ee2c07372168ebeeffb2 (diff)
downloadbcm5719-llvm-3d013bccfa6a71de097ce4945007a8e294dfb2bf.tar.gz
bcm5719-llvm-3d013bccfa6a71de097ce4945007a8e294dfb2bf.zip
fix error check in assert
llvm-svn: 154971
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/LocaleXlocale.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/LocaleXlocale.inc b/llvm/lib/Support/LocaleXlocale.inc
index c3f3e4e092c..f595e7c582c 100644
--- a/llvm/lib/Support/LocaleXlocale.inc
+++ b/llvm/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);
OpenPOWER on IntegriCloud