aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-13 22:04:09 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-13 22:04:09 +0000
commit58d33ad9c83f1195a7db544e4b41daa019aaa767 (patch)
tree98ab0498bb037142b60e906e4a1af1fcc7897528 /lib/Sema/SemaStmt.cpp
parentd8238a4e9cc7f77b50a8f02aa4710b3b4fbdf7ad (diff)
[ms-inline asm] Add a helpful assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r--lib/Sema/SemaStmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp
index 2598d04959..d22deb2f7f 100644
--- a/lib/Sema/SemaStmt.cpp
+++ b/lib/Sema/SemaStmt.cpp
@@ -2836,6 +2836,7 @@ static void patchMSAsmStrings(Sema &SemaRef, bool &IsSimple,
TokenBuf.resize(32);
bool StringInvalid = false;
Asm += SemaRef.PP.getSpelling(AsmToks[j], TokenBuf, &StringInvalid);
+ assert (!StringInvalid && "Expected valid string!");
break;
}
case tok::identifier: {