Commit 9284b03e authored by Mikael Holmen's avatar Mikael Holmen
Browse files

[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.
parent 2cd2445c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment