[llvm-commits] [llvm] r151025 - /llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Duncan Sands
baldrick at free.fr
Tue Feb 21 00:25:09 PST 2012
Hi Rafael,
> --- llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp (original)
> +++ llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp Mon Feb 20 21:48:30 2012
> @@ -503,8 +503,9 @@
> V = InsertNoopCastOfTo(V,
> Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace()));
>
> - Instruction *Inst = dyn_cast<Instruction>(V);
> - assert(!Inst || SE.DT->properlyDominates(Inst, Builder.GetInsertPoint()));
> + assert(!dyn_cast<Instruction>(V) ||
this should use: isa<Instruction>(V)
> + SE.DT->properlyDominates(dyn_cast<Instruction>(V),
this should use: cast<Instruction>(V)
Ciao, Duncan.
More information about the llvm-commits
mailing list