[all-commits] [llvm/llvm-project] ff5e89: Fix unused variable in CoroFrame.cpp when building...

Daniel Paoliello via All-commits all-commits at lists.llvm.org
Wed Jan 13 22:53:54 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff5e896425577f445ed080d88b582aab0896fba0
      https://github.com/llvm/llvm-project/commit/ff5e896425577f445ed080d88b582aab0896fba0
  Author: Daniel Paoliello <danpao at microsoft.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp

  Log Message:
  -----------
  Fix unused variable in CoroFrame.cpp when building Release with GCC 10

When building with GCC 10, the following warning is reported:

```
/llvm-project/llvm/lib/Transforms/Coroutines/CoroFrame.cpp:1527:28: warning: unused variable ‘CS’ [-Wunused-variable]
 1527 |       if (CatchSwitchInst *CS =
```

This change adds a cast to `void` to avoid the warning.

Reviewed By: lxfind

Differential Revision: https://reviews.llvm.org/D94456




More information about the All-commits mailing list