[NFC] Fix Wswitch warning triggered by 735e6c

This commit is contained in:
Chuanqi Xu 2022-06-14 14:44:51 +08:00
parent 029fc37270
commit d029db9e8a

View file

@ -921,6 +921,7 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
case Attribute::WillReturn:
case Attribute::WriteOnly:
case Attribute::AllocKind:
case Attribute::PresplitCoroutine:
continue;
// Those attributes should be safe to propagate to the extracted function.
case Attribute::AlwaysInline: