mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-15 15:33:56 +00:00
[ms-inline asm] Use mnemonicIsValid() in a helpful assert.
llvm-svn: 164421
This commit is contained in:
parent
17ede627f0
commit
90cad09ba5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user