mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Address Reid's review feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241889 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2654,23 +2654,27 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||
}
|
||||
|
||||
void visitCleanupBlockInst(CleanupBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
if (!I.getType()->isVoidTy()) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
}
|
||||
|
||||
void visitCatchBlock(CatchBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
if (!I.getType()->isVoidTy()) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
}
|
||||
|
||||
void visitTerminateBlock(TerminateBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
DEBUG(dbgs() << "TerminateBlock: " << I << "\n");
|
||||
// Nothing to do here.
|
||||
}
|
||||
|
||||
void visitCatchEndBlockInst(CatchEndBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
DEBUG(dbgs() << "CatchEndBlock: " << I << "\n");
|
||||
// Nothing to do here.
|
||||
}
|
||||
|
||||
void visitGetElementPtrInst(GetElementPtrInst &I) {
|
||||
|
||||
Reference in New Issue
Block a user