projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7747496
)
In parseMSRMaskOperand, add an explicit check for the operand being an identifier...
author
Craig Topper
<craig.topper@gmail.com>
Tue, 9 Oct 2012 04:55:28 +0000
(
04:55
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 9 Oct 2012 04:55:28 +0000
(
04:55
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165480
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 00f0f74067dc409344dc31df272a760baa1708b1..93e5eca62526c944ef41872ce956bf68dd5a6370 100644
(file)
--- a/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@
-3372,7
+3372,8
@@
ARMAsmParser::OperandMatchResultTy ARMAsmParser::
parseMSRMaskOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
SMLoc S = Parser.getTok().getLoc();
const AsmToken &Tok = Parser.getTok();
- assert(Tok.is(AsmToken::Identifier) && "Token is not an Identifier");
+ if (!Tok.is(AsmToken::Identifier))
+ return MatchOperand_NoMatch;
StringRef Mask = Tok.getString();
if (isMClass()) {