[cfe-commits] r161796 - /cfe/trunk/lib/Sema/SemaStmt.cpp
Chad Rosier
mcrosier at apple.com
Mon Aug 13 15:04:10 PDT 2012
Author: mcrosier
Date: Mon Aug 13 17:04:09 2012
New Revision: 161796
URL: http://llvm.org/viewvc/llvm-project?rev=161796&view=rev
Log:
[ms-inline asm] Add a helpful assert.
Modified:
cfe/trunk/lib/Sema/SemaStmt.cpp
Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=161796&r1=161795&r2=161796&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Mon Aug 13 17:04:09 2012
@@ -2836,6 +2836,7 @@
TokenBuf.resize(32);
bool StringInvalid = false;
Asm += SemaRef.PP.getSpelling(AsmToks[j], TokenBuf, &StringInvalid);
+ assert (!StringInvalid && "Expected valid string!");
break;
}
case tok::identifier: {
More information about the cfe-commits
mailing list