Use more idiomatic assert.

llvm-svn: 151026
This commit is contained in:
Rafael Espindola 2012-02-21 03:51:14 +00:00
parent b2defca267
commit 729e3aae92
1 changed files with 2 additions and 2 deletions

View File

@ -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.