diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-10 11:24:51 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-10 11:24:51 +0000 |
| commit | 619c4e57ba8d8caac7a0ce41c403427f47ab50ee (patch) | |
| tree | 7e2e5cdff47178c8a291f148e1fe08dfe72a144c /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | |
| parent | e9c336aeb53b4137c214aa119067803f6464fae8 (diff) | |
| download | bcm5719-llvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.tar.gz bcm5719-llvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.zip | |
Reduce dyn_cast<> to isa<> or cast<> where possible.
No functional change intended.
llvm-svn: 234586
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index b506eb03fb5..8d6d3ce3e61 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -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); |

