aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-08 20:29:46 +0000
committerChris Lattner <sabre@nondot.org>2003-09-08 20:29:46 +0000
commit79ad13808bdd1b248cf29fa840705955fa89a38f (patch)
tree37554019dc9c6c21cb1f22a4db743cab3b004153 /lib
parent8d8d361e207dda8421a0cd975a549d08dd4403a2 (diff)
downloadexternal_llvm-79ad13808bdd1b248cf29fa840705955fa89a38f.zip
external_llvm-79ad13808bdd1b248cf29fa840705955fa89a38f.tar.gz
external_llvm-79ad13808bdd1b248cf29fa840705955fa89a38f.tar.bz2
Oops, look at the VOLATILE marker, not the opcode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/AsmParser/llvmAsmParser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index 930f1aa..01c7373 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -1749,7 +1749,7 @@ MemoryInst : MALLOC Types {
if (!isa<PointerType>($3->get()))
ThrowException("Can't load from nonpointer type: " +
(*$3)->getDescription());
- $$ = new LoadInst(getVal(*$3, $4), "", $2);
+ $$ = new LoadInst(getVal(*$3, $4), "", $1);
delete $3;
}
| OptVolatile STORE ResolvedVal ',' Types ValueRef {
@@ -1762,7 +1762,7 @@ MemoryInst : MALLOC Types {
ThrowException("Can't store '" + $3->getType()->getDescription() +
"' into space of type '" + ElTy->getDescription() + "'!");
- $$ = new StoreInst($3, getVal(*$5, $6), $2);
+ $$ = new StoreInst($3, getVal(*$5, $6), $1);
delete $5;
}
| GETELEMENTPTR Types ValueRef IndexList {