diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2015-11-06 01:08:35 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2015-11-06 01:08:35 +0000 |
commit | f477585a2b2ca6a62b1194eaaf7ccdfd3ec539a8 (patch) | |
tree | 544cf37574d950ece53e312638fa08dd21a21bed /llvm/lib/CodeGen | |
parent | 38cc30279616acad9faa70504d2b8dab17aff0fa (diff) | |
download | bcm5719-llvm-f477585a2b2ca6a62b1194eaaf7ccdfd3ec539a8.tar.gz bcm5719-llvm-f477585a2b2ca6a62b1194eaaf7ccdfd3ec539a8.zip |
Fix build warnings
llvm-svn: 252255
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/WinEHPrepare.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index 7175ae5aefd..7b0dbd0c395 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -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 || @@ -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) { @@ -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()); @@ -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."); |