mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-16 07:00:12 +00:00
Fix build warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccae723cd4
commit
cfced88c54
@ -741,7 +741,7 @@ static void updateClonedEHPadUnwindToParent(
|
|||||||
// slightly different rules for whether or not it fits with the given
|
// slightly different rules for whether or not it fits with the given
|
||||||
// location.
|
// location.
|
||||||
auto *EHPadInst = UnwindDest->getFirstNonPHI();
|
auto *EHPadInst = UnwindDest->getFirstNonPHI();
|
||||||
if (auto *CEP = dyn_cast<CatchEndPadInst>(EHPadInst)) {
|
if (isa<CatchEndPadInst>(EHPadInst)) {
|
||||||
auto *CloneParentCatch =
|
auto *CloneParentCatch =
|
||||||
dyn_cast<CatchPadInst>(CloneParent->getFirstNonPHI());
|
dyn_cast<CatchPadInst>(CloneParent->getFirstNonPHI());
|
||||||
if (!CloneParentCatch ||
|
if (!CloneParentCatch ||
|
||||||
@ -1023,7 +1023,7 @@ void WinEHPrepare::updateTerminatorsAfterFuncletClone(
|
|||||||
// cleanup end pad.
|
// cleanup end pad.
|
||||||
assert(FuncletBlocks[CloneFunclet].count(UnwindDest) &&
|
assert(FuncletBlocks[CloneFunclet].count(UnwindDest) &&
|
||||||
"Unwind destination for invoke was not updated during cloning.");
|
"Unwind destination for invoke was not updated during cloning.");
|
||||||
} else if (auto *CEP = dyn_cast<CatchEndPadInst>(EHPadInst)) {
|
} else if (isa<CatchEndPadInst>(EHPadInst)) {
|
||||||
auto *OrigCatch = cast<CatchPadInst>(OrigFunclet->getFirstNonPHI());
|
auto *OrigCatch = cast<CatchPadInst>(OrigFunclet->getFirstNonPHI());
|
||||||
auto *CloneCatch = cast<CatchPadInst>(CloneFunclet->getFirstNonPHI());
|
auto *CloneCatch = cast<CatchPadInst>(CloneFunclet->getFirstNonPHI());
|
||||||
if (OrigCatch->getUnwindDest() == UnwindDest) {
|
if (OrigCatch->getUnwindDest() == UnwindDest) {
|
||||||
@ -1295,7 +1295,7 @@ static void updateSiblingToSiblingUnwind(
|
|||||||
assert(UnwindDest && "Invoke unwinds to a null destination.");
|
assert(UnwindDest && "Invoke unwinds to a null destination.");
|
||||||
assert(UnwindDest->isEHPad() && "Invoke does not unwind to an EH pad.");
|
assert(UnwindDest->isEHPad() && "Invoke does not unwind to an EH pad.");
|
||||||
auto *EHPadInst = UnwindDest->getFirstNonPHI();
|
auto *EHPadInst = UnwindDest->getFirstNonPHI();
|
||||||
if (auto *CEP = dyn_cast<CatchEndPadInst>(EHPadInst)) {
|
if (isa<CatchEndPadInst>(EHPadInst)) {
|
||||||
// If the invoke unwind destination is the unwind destination for
|
// If the invoke unwind destination is the unwind destination for
|
||||||
// the current child catch pad funclet, there is nothing to be done.
|
// the current child catch pad funclet, there is nothing to be done.
|
||||||
auto *CurCatch = cast<CatchPadInst>(ChildFunclet->getFirstNonPHI());
|
auto *CurCatch = cast<CatchPadInst>(ChildFunclet->getFirstNonPHI());
|
||||||
@ -1646,7 +1646,7 @@ void WinEHPrepare::cloneCommonBlocks(
|
|||||||
// resolved during the resolveFuncletAncestry processing.
|
// resolved during the resolveFuncletAncestry processing.
|
||||||
// For now, find the catchpad that unwinds to this block and assign
|
// For now, find the catchpad that unwinds to this block and assign
|
||||||
// that catchpad's first parent to be the color for this block.
|
// that catchpad's first parent to be the color for this block.
|
||||||
if (auto *CEP = dyn_cast<CatchEndPadInst>(BB->getFirstNonPHI())) {
|
if (isa<CatchEndPadInst>(BB->getFirstNonPHI())) {
|
||||||
assert(
|
assert(
|
||||||
FuncletCloningRequired &&
|
FuncletCloningRequired &&
|
||||||
"Found multi-colored catchendpad with no multi-parent funclets.");
|
"Found multi-colored catchendpad with no multi-parent funclets.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user