diff options
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index 602d696ac7..e4c85a7914 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -318,7 +318,7 @@ bool AsmParser::ParseStatement() { StringRef IDVal = ID.getString(); // Consume the identifier, see what is after it. - switch (Lexer.Lex()) { + switch (Lexer.Lex().getKind()) { case AsmToken::Colon: { // identifier ':' -> Label. Lexer.Lex(); @@ -609,7 +609,7 @@ bool AsmParser::ParseDirectiveSet() { StringRef Name = Lexer.getTok().getString(); - if (Lexer.Lex() != AsmToken::Comma) + if (Lexer.Lex().isNot(AsmToken::Comma)) return TokError("unexpected token in '.set'"); Lexer.Lex(); |