[llvm-commits] [llvm] r151025 - /llvm/trunk/lib/Analysis/ScalarEvolutionExpander.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Feb 20 19:48:30 PST 2012
Author: rafael
Date: Mon Feb 20 21:48:30 2012
New Revision: 151025
URL: http://llvm.org/viewvc/llvm-project?rev=151025&view=rev
Log:
Avoid warning on non assert builds.
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=151025&r1=151024&r2=151025&view=diff
==============================================================================
--- 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) ||
+ SE.DT->properlyDominates(dyn_cast<Instruction>(V),
+ Builder.GetInsertPoint()));
// Expand the operands for a plain byte offset.
Value *Idx = expandCodeFor(SE.getAddExpr(Ops), Ty);
More information about the llvm-commits
mailing list