[clang] [Clang] Drop functions with incompatible target-features when using mlink-builtin-bitcode (PR #65737)

Juan Manuel Martinez CaamaƱo via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 06:54:00 PDT 2023


================
@@ -375,6 +375,11 @@ class ReturnValueSlot {
   bool isExternallyDestructed() const { return IsExternallyDestructed; }
 };
 
+/// If \p F "target-features" are incompatible with the \p TargetOpts features,
----------------
jmmartinez wrote:

I've updated the comment but I've realized another problem: since it's dropping the functions in the builtin module, the user's module will still have the declaration.

I've updated the test to show this problem.

https://github.com/llvm/llvm-project/pull/65737


More information about the cfe-commits mailing list