mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-05 13:09:10 +00:00
Use SymbolicValueRef to parse getresult operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ec57d7005
commit
1b76c759ac
@ -3168,9 +3168,8 @@ MemoryInst : MALLOC Types OptCAlign {
|
||||
$$ = new StoreInst($3, tmpVal, $1, $7);
|
||||
delete $5;
|
||||
}
|
||||
| GETRESULT Types LocalName ',' EUINT64VAL {
|
||||
ValID TmpVID = ValID::createLocalName(*$3);
|
||||
Value *TmpVal = getVal($2->get(), TmpVID);
|
||||
| GETRESULT Types SymbolicValueRef ',' EUINT64VAL {
|
||||
Value *TmpVal = getVal($2->get(), $3);
|
||||
if (!GetResultInst::isValidOperands(TmpVal, $5))
|
||||
GEN_ERROR("Invalid getresult operands");
|
||||
$$ = new GetResultInst(TmpVal, $5);
|
||||
|
Loading…
Reference in New Issue
Block a user