mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
This assertion was bogus.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4492,14 +4492,13 @@ LowerArguments(BasicBlock *LLVMBB, SelectionDAGLowering &SDL,
|
|||||||
|
|
||||||
static void copyCatchInfo(BasicBlock *SrcBB, BasicBlock *DestBB,
|
static void copyCatchInfo(BasicBlock *SrcBB, BasicBlock *DestBB,
|
||||||
MachineModuleInfo *MMI, FunctionLoweringInfo &FLI) {
|
MachineModuleInfo *MMI, FunctionLoweringInfo &FLI) {
|
||||||
assert(!FLI.MBBMap[SrcBB]->isLandingPad() &&
|
|
||||||
"Copying catch info out of a landing pad!");
|
|
||||||
for (BasicBlock::iterator I = SrcBB->begin(), E = --SrcBB->end(); I != E; ++I)
|
for (BasicBlock::iterator I = SrcBB->begin(), E = --SrcBB->end(); I != E; ++I)
|
||||||
if (isSelector(I)) {
|
if (isSelector(I)) {
|
||||||
// Apply the catch info to DestBB.
|
// Apply the catch info to DestBB.
|
||||||
addCatchInfo(cast<CallInst>(*I), MMI, FLI.MBBMap[DestBB]);
|
addCatchInfo(cast<CallInst>(*I), MMI, FLI.MBBMap[DestBB]);
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
FLI.CatchInfoFound.insert(I);
|
if (!FLI.MBBMap[SrcBB]->isLandingPad())
|
||||||
|
FLI.CatchInfoFound.insert(I);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user