mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
Reduce dyn_cast<> to isa<> or cast<> where possible.
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1053,7 +1053,7 @@ void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
|
||||
// path is rarely taken. This seems to be the case for SPEC benchmarks.
|
||||
TerminatorInst *CheckTerm = SplitBlockAndInsertIfThen(
|
||||
Cmp, InsertBefore, false, MDBuilder(*C).createBranchWeights(1, 100000));
|
||||
assert(dyn_cast<BranchInst>(CheckTerm)->isUnconditional());
|
||||
assert(cast<BranchInst>(CheckTerm)->isUnconditional());
|
||||
BasicBlock *NextBB = CheckTerm->getSuccessor(0);
|
||||
IRB.SetInsertPoint(CheckTerm);
|
||||
Value *Cmp2 = createSlowPathCmp(IRB, AddrLong, ShadowValue, TypeSize);
|
||||
|
Reference in New Issue
Block a user