Allow llvm-as to parse a getresult with an undef operand.

llvm-svn: 50175
This commit is contained in:
Dan Gohman 2008-04-23 20:11:27 +00:00
parent f6e15a4774
commit 6e9185093d
4 changed files with 460 additions and 460 deletions

File diff suppressed because it is too large Load Diff

View File

@ -346,7 +346,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
#line 950 "/Users/sabre/llvm/lib/AsmParser/llvmAsmParser.y"
#line 950 "/Users/gohman/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
{
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;

View File

@ -3135,7 +3135,7 @@ MemoryInst : MALLOC Types OptCAlign {
$$ = new StoreInst($3, tmpVal, $1, $7);
delete $5;
}
| GETRESULT Types SymbolicValueRef ',' EUINT64VAL {
| GETRESULT Types ValueRef ',' EUINT64VAL {
Value *TmpVal = getVal($2->get(), $3);
if (!GetResultInst::isValidOperands(TmpVal, $5))
GEN_ERROR("Invalid getresult operands");

View File

@ -3135,7 +3135,7 @@ MemoryInst : MALLOC Types OptCAlign {
$$ = new StoreInst($3, tmpVal, $1, $7);
delete $5;
}
| GETRESULT Types SymbolicValueRef ',' EUINT64VAL {
| GETRESULT Types ValueRef ',' EUINT64VAL {
Value *TmpVal = getVal($2->get(), $3);
if (!GetResultInst::isValidOperands(TmpVal, $5))
GEN_ERROR("Invalid getresult operands");