commit | ad8665a2a2d76a04248b89fb746350beadcc05c1 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Jan 04 05:04:53 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Jan 04 05:04:53 2008 +0000 |
tree | de9be4368bf91536b79b255865f43a655b46ddf5 | |
parent | da56ecaf71f8b7fe97fb66c4537cf431cfe078a1 [diff] [blame] |
Fix PR1896 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45568 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 2e2648f..c3c0530 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp
@@ -640,7 +640,7 @@ // 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!"); }