From 705b48d960dff1a96ac40d0cf932eb465b9a550a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 21 Feb 2012 03:51:14 +0000 Subject: Use more idiomatic assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151026 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ScalarEvolutionExpander.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Analysis') diff --git a/lib/Analysis/ScalarEvolutionExpander.cpp b/lib/Analysis/ScalarEvolutionExpander.cpp index 5c52b88..0f2a634 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. -- cgit v1.1