[all-commits] [llvm/llvm-project] 9284b0: [Coroutines] Remove unused variable [NFC]
mikaelholmen via All-commits
all-commits at lists.llvm.org
Fri Sep 29 03:01:50 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9284b03e87df5153fe425b6b81b8402f666deb18
https://github.com/llvm/llvm-project/commit/9284b03e87df5153fe425b6b81b8402f666deb18
Author: Mikael Holmen <mikael.holmen at ericsson.com>
Date: 2023-09-29 (Fri, 29 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
Log Message:
-----------
[Coroutines] Remove unused variable [NFC]
gcc warned about it:
../lib/Transforms/Coroutines/CoroFrame.cpp:2785:15: warning: unused variable 'MD' [-Wunused-variable]
2785 | if (MDNode *MD = AI->getMetadata(LLVMContext::MD_coro_outside_frame))
| ^~
Fix the warning by removing the unused variable and change the call
from getMetadata to hasMetadata.
More information about the All-commits
mailing list