Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
llvm-svn: 252255
  • Loading branch information
andykaylor committed Nov 6, 2015
1 parent 38cc302 commit f477585
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llvm/lib/CodeGen/WinEHPrepare.cpp
Expand Up @@ -741,7 +741,7 @@ static void updateClonedEHPadUnwindToParent(
// slightly different rules for whether or not it fits with the given
// location.
auto *EHPadInst = UnwindDest->getFirstNonPHI();
if (auto *CEP = dyn_cast<CatchEndPadInst>(EHPadInst)) {
if (isa<CatchEndPadInst>(EHPadInst)) {
auto *CloneParentCatch =
dyn_cast<CatchPadInst>(CloneParent->getFirstNonPHI());
if (!CloneParentCatch ||
Expand Down Expand Up @@ -1023,7 +1023,7 @@ void WinEHPrepare::updateTerminatorsAfterFuncletClone(
// cleanup end pad.
assert(FuncletBlocks[CloneFunclet].count(UnwindDest) &&
"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 *CloneCatch = cast<CatchPadInst>(CloneFunclet->getFirstNonPHI());
if (OrigCatch->getUnwindDest() == UnwindDest) {
Expand Down Expand Up @@ -1295,7 +1295,7 @@ static void updateSiblingToSiblingUnwind(
assert(UnwindDest && "Invoke unwinds to a null destination.");
assert(UnwindDest->isEHPad() && "Invoke does not unwind to an EH pad.");
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
// the current child catch pad funclet, there is nothing to be done.
auto *CurCatch = cast<CatchPadInst>(ChildFunclet->getFirstNonPHI());
Expand Down Expand Up @@ -1646,7 +1646,7 @@ void WinEHPrepare::cloneCommonBlocks(
// resolved during the resolveFuncletAncestry processing.
// For now, find the catchpad that unwinds to this block and assign
// 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(
FuncletCloningRequired &&
"Found multi-colored catchendpad with no multi-parent funclets.");
Expand Down

0 comments on commit f477585

Please sign in to comment.