diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index c47b33900e5..df562fa1344 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp @@ -46,6 +46,7 @@ Value *SCEVExpander::ReuseOrCreateCast(Value *V, const Type *Ty, rememberInstruction(NewCI); return NewCI; } + rememberInstruction(CI); return CI; }