[cfe-commits] r159635 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Matt Beaumont-Gay
matthewbg at google.com
Mon Jul 2 20:55:58 PDT 2012
Author: matthewbg
Date: Mon Jul 2 22:55:58 2012
New Revision: 159635
URL: http://llvm.org/viewvc/llvm-project?rev=159635&view=rev
Log:
Silence warning in -Asserts build
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=159635&r1=159634&r2=159635&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Mon Jul 2 22:55:58 2012
@@ -1737,6 +1737,7 @@
Target.resize(CharByteWidth * (Source.size() + 1));
char* ResultPtr = &Target[0];
bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr);
+ (void)success;
assert(success);
Target.resize(ResultPtr - &Target[0]);
}
More information about the cfe-commits
mailing list