Fix unused variable in CoroFrame.cpp when building Release with GCC 10
authorDaniel Paoliello <danpao@microsoft.com>
Thu, 14 Jan 2021 06:52:40 +0000 (22:52 -0800)
committerXun Li <lxfind@gmail.com>
Thu, 14 Jan 2021 06:53:25 +0000 (22:53 -0800)
commitff5e896425577f445ed080d88b582aab0896fba0
tree873c02941d7eb12b5e10d9adb4bc2c9165a8f00d
parent6ed3083a96541a7483cb02bb3b2f52b1d0a37c84
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
llvm/lib/Transforms/Coroutines/CoroFrame.cpp