[llvm] d029db9 - [NFC] Fix Wswitch warning triggered by 735e6c
Chuanqi Xu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 23:45:45 PDT 2022
Author: Chuanqi Xu
Date: 2022-06-14T14:45:15+08:00
New Revision: d029db9e8ac4693a720375599850f52d854f58c9
URL: https://github.com/llvm/llvm-project/commit/d029db9e8ac4693a720375599850f52d854f58c9
DIFF: https://github.com/llvm/llvm-project/commit/d029db9e8ac4693a720375599850f52d854f58c9.diff
LOG: [NFC] Fix Wswitch warning triggered by 735e6c
Added:
Modified:
llvm/lib/Transforms/Utils/CodeExtractor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 6e392dcee1eae..c4ef979790be3 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -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:
More information about the llvm-commits
mailing list