diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 5c52b88ac22..0f2a634a206 100644 --- a/lib/Analysis/ScalarEvolutionExpander.cpp +++ b/lib/Analysis/ScalarEvolutionExpander.cpp @@ -503,8 +503,8 @@ Value *SCEVExpander::expandAddToGEP(const SCEV *const *op_begin, V = InsertNoopCastOfTo(V, Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace())); - assert(!dyn_cast(V) || - SE.DT->properlyDominates(dyn_cast(V), + assert(!isa(V) || + SE.DT->properlyDominates(cast(V), Builder.GetInsertPoint())); // Expand the operands for a plain byte offset.