mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
fix PR8602, a bug in an assertion: a volatile store *of* a pointer
does not make the alias set for that pointer volatile, just stores *to* the pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -691,8 +691,8 @@ void LICM::PromoteAliasSet(AliasSet &AS) {
|
||||
if (isa<LoadInst>(Use))
|
||||
assert(!cast<LoadInst>(Use)->isVolatile() && "AST broken");
|
||||
else if (isa<StoreInst>(Use)) {
|
||||
assert(!cast<StoreInst>(Use)->isVolatile() && "AST broken");
|
||||
if (Use->getOperand(0) == ASIV) return;
|
||||
assert(!cast<StoreInst>(Use)->isVolatile() && "AST broken");
|
||||
} else
|
||||
return; // Not a load or store.
|
||||
|
||||
|
Reference in New Issue
Block a user