diff options
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index ca4ba6e07f3..ae007ce3693 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -4686,8 +4686,8 @@ int LLParser::ParseInsertValue(Instruction *&Inst, PerFunctionState &PFS) {  ///   ::= 'null' | TypeAndValue  bool LLParser::ParseMDNodeVector(SmallVectorImpl<Metadata *> &Elts,                                   PerFunctionState *PFS) { -  assert(Lex.getKind() == lltok::lbrace); -  Lex.Lex(); +  if (ParseToken(lltok::lbrace, "expected '{' here")) +    return true;    // Check for an empty list.    if (EatIfPresent(lltok::rbrace)) | 

