remove two bogus calls that accepted metadata in the middle of insert/extract value
authorChris Lattner <sabre@nondot.org>
Wed, 30 Dec 2009 05:04:46 +0000 (05:04 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Dec 2009 05:04:46 +0000 (05:04 +0000)
*constant exprs*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92296 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp

index bb6f85697ba1883f2491ceb645ffb89a5f31b200..1317b2cbd009b010c5dd786787efe9b1a6de219d 100644 (file)
@@ -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<StructType>(Val->getType()) && !isa<ArrayType>(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<StructType>(Val0->getType()) && !isa<ArrayType>(Val0->getType()))
       return Error(ID.Loc, "extractvalue operand must be array or struct");
     if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices.begin(),