diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-21 03:51:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-02-21 03:51:14 +0000 |
commit | 705b48d960dff1a96ac40d0cf932eb465b9a550a (patch) | |
tree | f910a575bf0af0761837fd3178e440d9036cbcee /lib/Analysis | |
parent | 161fb5d936e8feb730b5598243e20c76d3dc62f7 (diff) | |
download | external_llvm-705b48d960dff1a96ac40d0cf932eb465b9a550a.zip external_llvm-705b48d960dff1a96ac40d0cf932eb465b9a550a.tar.gz external_llvm-705b48d960dff1a96ac40d0cf932eb465b9a550a.tar.bz2 |
Use more idiomatic assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/ScalarEvolutionExpander.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Instruction>(V) || - SE.DT->properlyDominates(dyn_cast<Instruction>(V), + assert(!isa<Instruction>(V) || + SE.DT->properlyDominates(cast<Instruction>(V), Builder.GetInsertPoint())); // Expand the operands for a plain byte offset. |