llvm.org GIT mirror llvm / 102b8cc
In parseMSRMaskOperand, add an explicit check for the operand being an identifier instead of just having an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165480 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 7 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
33713371 parseMSRMaskOperand(SmallVectorImpl &Operands) {
33723372 SMLoc S = Parser.getTok().getLoc();
33733373 const AsmToken &Tok = Parser.getTok();
3374 assert(Tok.is(AsmToken::Identifier) && "Token is not an Identifier");
3374 if (!Tok.is(AsmToken::Identifier))
3375 return MatchOperand_NoMatch;
33753376 StringRef Mask = Tok.getString();
33763377
33773378 if (isMClass()) {