mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
remove two bogus calls that accepted metadata in the middle of insert/extract value
*constant exprs*. llvm-svn: 92296
This commit is contained in:
parent
63289c0f1e
commit
2ed8fad119
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user