summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/MCAsmLexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/MC/MCParser/MCAsmLexer.cpp')
-rw-r--r--llvm/lib/MC/MCParser/MCAsmLexer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCParser/MCAsmLexer.cpp b/llvm/lib/MC/MCParser/MCAsmLexer.cpp
index 795cc85ef54..e891bd2c624 100644
--- a/llvm/lib/MC/MCParser/MCAsmLexer.cpp
+++ b/llvm/lib/MC/MCParser/MCAsmLexer.cpp
@@ -12,8 +12,8 @@
using namespace llvm;
-MCAsmLexer::MCAsmLexer() : CurTok(AsmToken::Error, StringRef()),
- TokStart(nullptr), SkipSpace(true) {
+MCAsmLexer::MCAsmLexer() : TokStart(nullptr), SkipSpace(true) {
+ CurTok.emplace_back(AsmToken::Error, StringRef());
}
MCAsmLexer::~MCAsmLexer() {
OpenPOWER on IntegriCloud