diff options
-rw-r--r-- | lib/Sema/SemaStmtAsm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp index 18616ee226..33eb565b43 100644 --- a/lib/Sema/SemaStmtAsm.cpp +++ b/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; |