[llvm-commits] [llvm] r151026 - /llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Feb 20 19:51:14 PST 2012
Author: rafael
Date: Mon Feb 20 21:51:14 2012
New Revision: 151026
URL: http://llvm.org/viewvc/llvm-project?rev=151026&view=rev
Log:
Use more idiomatic assert.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp?rev=151026&r1=151025&r2=151026&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp Mon Feb 20 21:51:14 2012
@@ -503,8 +503,8 @@
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.
More information about the llvm-commits
mailing list