projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17ede62
)
[ms-inline asm] Use mnemonicIsValid() in a helpful assert.
author
Chad Rosier
<mcrosier@apple.com>
Fri, 21 Sep 2012 22:22:39 +0000
(22:22 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Fri, 21 Sep 2012 22:22:39 +0000
(22:22 +0000)
llvm-svn: 164421
clang/lib/Sema/SemaStmtAsm.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaStmtAsm.cpp
b/clang/lib/Sema/SemaStmtAsm.cpp
index 18616ee226a75de718a44419bf6071fb859763e0..33eb565b4322e1e99ba75ae0233acc4d9bd5ab93 100644
(file)
--- a/
clang/lib/Sema/SemaStmtAsm.cpp
+++ b/
clang/lib/Sema/SemaStmtAsm.cpp
@@
-536,6
+536,8
@@
StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
SmallString<128> OpcodeStr;
for (unsigned i = 0, e = IDVal.size(); i != e; ++i)
OpcodeStr.push_back(tolower(IDVal[i]));
+ // FIXME: Convert to a StmtError.
+ assert(TargetParser->mnemonicIsValid(OpcodeStr) && "Invalid mnemonic!");
// Parse the operands.
llvm::SMLoc IDLoc;