diff options
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/IPO/GlobalOpt.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp index 2e2648ff06c..c3c0530bb1c 100644 --- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp +++ b/llvm/lib/Transforms/IPO/GlobalOpt.cpp @@ -640,7 +640,7 @@ static bool OptimizeAwayTrappingUsesOfLoads(GlobalVariable *GV, Constant *LV) {        // If we get here we could have stores, selects, or phi nodes whose values        // are loaded.        assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI) || -              isa<SelectInst>(*GUI)) && +              isa<SelectInst>(*GUI) || isa<ConstantExpr>(*GUI)) &&               "Only expect load and stores!");      } | 

