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
This commit is contained in:
Chris Lattner 2003-09-08 20:29:46 +00:00
parent 8d8d361e20
commit 79ad13808b

View File

@ -1749,7 +1749,7 @@ MemoryInst : MALLOC Types {
if (!isa<PointerType>($3->get())) if (!isa<PointerType>($3->get()))
ThrowException("Can't load from nonpointer type: " + ThrowException("Can't load from nonpointer type: " +
(*$3)->getDescription()); (*$3)->getDescription());
$$ = new LoadInst(getVal(*$3, $4), "", $2); $$ = new LoadInst(getVal(*$3, $4), "", $1);
delete $3; delete $3;
} }
| OptVolatile STORE ResolvedVal ',' Types ValueRef { | OptVolatile STORE ResolvedVal ',' Types ValueRef {
@ -1762,7 +1762,7 @@ MemoryInst : MALLOC Types {
ThrowException("Can't store '" + $3->getType()->getDescription() + ThrowException("Can't store '" + $3->getType()->getDescription() +
"' into space of type '" + ElTy->getDescription() + "'!"); "' into space of type '" + ElTy->getDescription() + "'!");
$$ = new StoreInst($3, getVal(*$5, $6), $2); $$ = new StoreInst($3, getVal(*$5, $6), $1);
delete $5; delete $5;
} }
| GETELEMENTPTR Types ValueRef IndexList { | GETELEMENTPTR Types ValueRef IndexList {