From: Rafael Espindola Date: Tue, 21 Feb 2012 03:51:14 +0000 (+0000) Subject: Use more idiomatic assert. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=705b48d960dff1a96ac40d0cf932eb465b9a550a;p=oota-llvm.git Use more idiomatic assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151026 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.