1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

selects can also reach here

llvm-svn: 37081
This commit is contained in:
Chris Lattner 2007-05-15 06:42:04 +00:00
parent 272d600454
commit 701ec7ae28

View File

@ -623,9 +623,10 @@ static bool OptimizeAwayTrappingUsesOfLoads(GlobalVariable *GV, Constant *LV) {
Loads.push_back(LI);
Changed |= OptimizeAwayTrappingUsesOfValue(LI, LV);
} else {
// If we get here we could have stores, loads, or phi nodes whose values
// If we get here we could have stores, selects, or phi nodes whose values
// are loaded.
assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI)) &&
assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI) ||
isa<SelectInst>(*GUI)) &&
"Only expect load and stores!");
}