aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-mc/AsmLexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-mc/AsmLexer.h')
-rw-r--r--tools/llvm-mc/AsmLexer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-mc/AsmLexer.h b/tools/llvm-mc/AsmLexer.h
index 3bedc6e..2918e43 100644
--- a/tools/llvm-mc/AsmLexer.h
+++ b/tools/llvm-mc/AsmLexer.h
@@ -110,8 +110,8 @@ public:
AsmLexer(SourceMgr &SrcMgr);
~AsmLexer();
- AsmToken::TokenKind Lex() {
- return CurTok = LexToken(), getKind();
+ const AsmToken &Lex() {
+ return CurTok = LexToken();
}
AsmToken::TokenKind getKind() const { return CurTok.getKind(); }