[PATCH] D94456: Fix unused variable in CoroFrame.cpp when building Release with GCC 10

Alexey Sachkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 00:08:12 PST 2021


AlexeySachkov added inline comments.


================
Comment at: llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1538
               dyn_cast<CatchSwitchInst>(Pred->getTerminator())) {
+        (void)CS;
         // CleanupPad with a CatchSwitch predecessor: therefore this is an
----------------
I wonder, why do we need the second `(void)CS` if we already had one on line 1542 right within the same `if`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94456/new/

https://reviews.llvm.org/D94456



More information about the llvm-commits mailing list