]> granicus.if.org Git - llvm/commitdiff
AsmParser: Remove dead code, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Feb 2015 22:00:59 +0000 (22:00 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Feb 2015 22:00:59 +0000 (22:00 +0000)
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

lib/AsmParser/LLParser.cpp

index 6441dc3f6f57b50b4bec456029d5a9298eb3ffbf..809ca9daa81f2921918736596291276d62031830 100644 (file)
@@ -2942,10 +2942,6 @@ bool LLParser::ParseMDField(LocTy Loc, StringRef Name, DwarfTagField &Result) {
   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");