[clang] [FMV] Check ABI compatibility of multi-version functions wrt the module-level target (PR #232988)

Alexandros Lamprineas via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 02:13:36 PST 2026


================
@@ -5282,7 +5283,7 @@ void CodeGenModule::emitMultiVersionFunctions() {
     // in this TU. For other architectures it is always emitted.
     bool ShouldEmitResolver = !getTriple().isAArch64();
     SmallVector<CodeGenFunction::FMVResolverOption, 10> Options;
-    llvm::DenseMap<llvm::Function *, const FunctionDecl *> DeclMap;
+    llvm::DenseMap<llvm::Function *, GlobalDecl> DeclMap;
----------------
labrinea wrote:

This change is affecting other targets. Why is it needed?

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


More information about the cfe-commits mailing list