Author: Xun Li
Date: 2021-01-25T08:37:45-08:00
New Revision: 17c3538aef656178b342573043eff328f5cf2673

URL: 
https://github.com/llvm/llvm-project/commit/17c3538aef656178b342573043eff328f5cf2673
DIFF: 
https://github.com/llvm/llvm-project/commit/17c3538aef656178b342573043eff328f5cf2673.diff

LOG: Revert "Fix unused variable in CoroFrame.cpp when building Release with 
GCC 10"

This reverts commit ff5e896425577f445ed080d88b582aab0896fba0.

Added: 
    

Modified: 
    llvm/lib/Transforms/Coroutines/CoroFrame.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp 
b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index 3f290f2f087b..cd5c1863bb3c 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -1549,7 +1549,6 @@ static void rewritePHIs(BasicBlock &BB) {
     for (BasicBlock *Pred : Preds) {
       if (CatchSwitchInst *CS =
               dyn_cast<CatchSwitchInst>(Pred->getTerminator())) {
-        (void)CS;
         // CleanupPad with a CatchSwitch predecessor: therefore this is an
         // unwind destination that needs to be handle specially.
         assert(CS->getUnwindDest() == &BB);


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to