[llvm] r228208 - AsmParser: Remove dead code, NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed Feb 4 14:00:59 PST 2015
Author: dexonsmith
Date: Wed Feb 4 16:00:59 2015
New Revision: 228208
URL: http://llvm.org/viewvc/llvm-project?rev=228208&view=rev
Log:
AsmParser: Remove dead code, NFC
This condition is checked in the generic `ParseMDField()`.
Modified:
llvm/trunk/lib/AsmParser/LLParser.cpp
Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=228208&r1=228207&r2=228208&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Wed Feb 4 16:00:59 2015
@@ -2942,10 +2942,6 @@ bool LLParser::ParseMDField(LocTy Loc, S
if (Lex.getKind() == lltok::APSInt)
return ParseMDField(Loc, Name, static_cast<MDUnsignedField &>(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");
More information about the llvm-commits
mailing list