diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-09-21 22:22:39 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-09-21 22:22:39 +0000 |
commit | 3d442196134d18ed8ee17576638b758362b60742 (patch) | |
tree | ba12db32801dd623899f5fb3d99305c386c37bb6 /lib/Sema/SemaStmtAsm.cpp | |
parent | 245d5a31e54f4ec69cc45885dfb4d42576fb3e5f (diff) |
[ms-inline asm] Use mnemonicIsValid() in a helpful assert.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmtAsm.cpp')
-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; |