mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Fix Transforms/GlobalOpt/2007-05-13-Crash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
185bc8905a
commit
79cfddf646
@ -623,7 +623,10 @@ static bool OptimizeAwayTrappingUsesOfLoads(GlobalVariable *GV, Constant *LV) {
|
||||
Loads.push_back(LI);
|
||||
Changed |= OptimizeAwayTrappingUsesOfValue(LI, LV);
|
||||
} else {
|
||||
assert(isa<StoreInst>(*GUI) && "Only expect load and stores!");
|
||||
// If we get here we could have stores, loads, or phi nodes whose values
|
||||
// are loaded.
|
||||
assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI)) &&
|
||||
"Only expect load and stores!");
|
||||
}
|
||||
|
||||
if (Changed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user