From: Chris Lattner Date: Wed, 30 Dec 2009 05:04:46 +0000 (+0000) Subject: remove two bogus calls that accepted metadata in the middle of insert/extract value X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fa149ae923c32f80383d3585f7d5ea3bdae5ecf4;p=oota-llvm.git remove two bogus calls that accepted metadata in the middle of insert/extract value *constant exprs*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92296 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index bb6f85697ba..1317b2cbd00 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -2116,9 +2116,6 @@ bool LLParser::ParseValID(ValID &ID) { ParseIndexList(Indices) || ParseToken(lltok::rparen, "expected ')' in extractvalue constantexpr")) return true; - // FIXME: THIS ISN'T RIGHT? WHERE IS THE COMMA? - if (Lex.getKind() == lltok::MetadataVar) - if (ParseOptionalCustomMetadata()) return true; if (!isa(Val->getType()) && !isa(Val->getType())) return Error(ID.Loc, "extractvalue operand must be array or struct"); @@ -2141,8 +2138,6 @@ bool LLParser::ParseValID(ValID &ID) { ParseIndexList(Indices) || ParseToken(lltok::rparen, "expected ')' in insertvalue constantexpr")) return true; - if (Lex.getKind() == lltok::MetadataVar) - if (ParseOptionalCustomMetadata()) return true; if (!isa(Val0->getType()) && !isa(Val0->getType())) return Error(ID.Loc, "extractvalue operand must be array or struct"); if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices.begin(),