aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-02-22 19:31:15 +0000
committerDevang Patel <dpatel@apple.com>2008-02-22 19:31:15 +0000
commit1b76c759acec15a8b43170bca65d94d54304c474 (patch)
treee08cc43187e7116dc6e615977c14ff2bb1e48376 /lib/AsmParser
parent8ec57d70051f70509e5db3345cd8d4f6cf9e5eb8 (diff)
downloadexternal_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.y5
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);