summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmtAsm.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-09-21 22:22:39 +0000
committerChad Rosier <mcrosier@apple.com>2012-09-21 22:22:39 +0000
commit90cad09ba5bc7ae2ad53e89120c6c76e09e00933 (patch)
tree958dd0fa15adf644e9e79c69a48068ec27c2800b /clang/lib/Sema/SemaStmtAsm.cpp
parent17ede627f0e7ee317f94372a4ab49f9ae0fc6b2c (diff)
downloadbcm5719-llvm-90cad09ba5bc7ae2ad53e89120c6c76e09e00933.tar.gz
bcm5719-llvm-90cad09ba5bc7ae2ad53e89120c6c76e09e00933.zip
[ms-inline asm] Use mnemonicIsValid() in a helpful assert.
llvm-svn: 164421
Diffstat (limited to 'clang/lib/Sema/SemaStmtAsm.cpp')
-rw-r--r--clang/lib/Sema/SemaStmtAsm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp
index 18616ee226a..33eb565b432 100644
--- 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;
OpenPOWER on IntegriCloud