diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-04 05:04:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-04 05:04:53 +0000 |
| commit | bdd6acfb590dcc328c640b51bcb93009dae58aae (patch) | |
| tree | f05240b1284b156141834ed3bb3a6eb026b5a43d /llvm/lib/Transforms | |
| parent | 69ea01446eb8d98bbb32230112fb9634d49d8563 (diff) | |
| download | bcm5719-llvm-bdd6acfb590dcc328c640b51bcb93009dae58aae.tar.gz bcm5719-llvm-bdd6acfb590dcc328c640b51bcb93009dae58aae.zip | |
Fix PR1896
llvm-svn: 45568
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!"); } |

