Use more idiomatic assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2012-02-21 03:51:14 +00:00
parent 161fb5d936
commit 705b48d960

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.