mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-29 08:16:51 +00:00
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
This commit is contained in:
@@ -2116,9 +2116,6 @@ bool LLParser::ParseValID(ValID &ID) {
|
|||||||
ParseIndexList(Indices) ||
|
ParseIndexList(Indices) ||
|
||||||
ParseToken(lltok::rparen, "expected ')' in extractvalue constantexpr"))
|
ParseToken(lltok::rparen, "expected ')' in extractvalue constantexpr"))
|
||||||
return true;
|
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()))
|
if (!isa<StructType>(Val->getType()) && !isa<ArrayType>(Val->getType()))
|
||||||
return Error(ID.Loc, "extractvalue operand must be array or struct");
|
return Error(ID.Loc, "extractvalue operand must be array or struct");
|
||||||
@@ -2141,8 +2138,6 @@ bool LLParser::ParseValID(ValID &ID) {
|
|||||||
ParseIndexList(Indices) ||
|
ParseIndexList(Indices) ||
|
||||||
ParseToken(lltok::rparen, "expected ')' in insertvalue constantexpr"))
|
ParseToken(lltok::rparen, "expected ')' in insertvalue constantexpr"))
|
||||||
return true;
|
return true;
|
||||||
if (Lex.getKind() == lltok::MetadataVar)
|
|
||||||
if (ParseOptionalCustomMetadata()) return true;
|
|
||||||
if (!isa<StructType>(Val0->getType()) && !isa<ArrayType>(Val0->getType()))
|
if (!isa<StructType>(Val0->getType()) && !isa<ArrayType>(Val0->getType()))
|
||||||
return Error(ID.Loc, "extractvalue operand must be array or struct");
|
return Error(ID.Loc, "extractvalue operand must be array or struct");
|
||||||
if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices.begin(),
|
if (!ExtractValueInst::getIndexedType(Val0->getType(), Indices.begin(),
|
||||||
|
|||||||
Reference in New Issue
Block a user