From: Duncan P. N. Exon Smith Date: Wed, 4 Feb 2015 22:00:59 +0000 (+0000) Subject: AsmParser: Remove dead code, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7ec73f04a81eb1c51a0fe321f5db407965c7745b;p=oota-llvm.git AsmParser: Remove dead code, NFC This condition is checked in the generic `ParseMDField()`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 6441dc3f6f5..809ca9daa81 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -2942,10 +2942,6 @@ bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DwarfTagField &Result) { if (Lex.getKind() == lltok::APSInt) return ParseMDField(Loc, Name, static_cast(Result)); - if (Result.Seen) - return Error(Loc, - "field '" + Name + "' cannot be specified more than once"); - if (Lex.getKind() != lltok::DwarfTag) return TokError("expected DWARF tag");