mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-25 19:29:53 +00:00
[WinEH] Fold cast into assertion based on review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de6157ce1e
commit
36ae857dc6
@ -882,9 +882,8 @@ CloningDirector::CloningAction WinEHCatchDirector::handleBeginCatch(
|
||||
ExceptionObjectVar = Inst->getOperand(1)->stripPointerCasts();
|
||||
if (isa<ConstantPointerNull>(ExceptionObjectVar))
|
||||
return CloningDirector::SkipInstruction;
|
||||
AllocaInst *AI = dyn_cast<AllocaInst>(ExceptionObjectVar);
|
||||
(void)AI;
|
||||
assert(AI && AI->isStaticAlloca() && "catch parameter is not static alloca");
|
||||
assert(cast<AllocaInst>(ExceptionObjectVar)->isStaticAlloca() &&
|
||||
"catch parameter is not static alloca");
|
||||
Materializer.escapeCatchObject(ExceptionObjectVar);
|
||||
return CloningDirector::SkipInstruction;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user