mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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:
parent
161fb5d936
commit
705b48d960
@ -503,8 +503,8 @@ Value *SCEVExpander::expandAddToGEP(const SCEV *const *op_begin,
|
|||||||
V = InsertNoopCastOfTo(V,
|
V = InsertNoopCastOfTo(V,
|
||||||
Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace()));
|
Type::getInt8PtrTy(Ty->getContext(), PTy->getAddressSpace()));
|
||||||
|
|
||||||
assert(!dyn_cast<Instruction>(V) ||
|
assert(!isa<Instruction>(V) ||
|
||||||
SE.DT->properlyDominates(dyn_cast<Instruction>(V),
|
SE.DT->properlyDominates(cast<Instruction>(V),
|
||||||
Builder.GetInsertPoint()));
|
Builder.GetInsertPoint()));
|
||||||
|
|
||||||
// Expand the operands for a plain byte offset.
|
// Expand the operands for a plain byte offset.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user