diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-22 19:31:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-22 19:31:15 +0000 |
commit | 1b76c759acec15a8b43170bca65d94d54304c474 (patch) | |
tree | e08cc43187e7116dc6e615977c14ff2bb1e48376 /lib/AsmParser | |
parent | 8ec57d70051f70509e5db3345cd8d4f6cf9e5eb8 (diff) | |
download | external_llvm-1b76c759acec15a8b43170bca65d94d54304c474.zip external_llvm-1b76c759acec15a8b43170bca65d94d54304c474.tar.gz external_llvm-1b76c759acec15a8b43170bca65d94d54304c474.tar.bz2 |
Use SymbolicValueRef to parse getresult operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 137bd58..2ef3d8b 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -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); |