[llvm] 865c92b - llvm: Export `ilist_node_base` template specialization (#168094)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 15:45:56 PST 2025


Author: Fabrice de Gans
Date: 2025-11-17T15:45:53-08:00
New Revision: 865c92be033477d07832af13342f8129614c942d

URL: https://github.com/llvm/llvm-project/commit/865c92be033477d07832af13342f8129614c942d
DIFF: https://github.com/llvm/llvm-project/commit/865c92be033477d07832af13342f8129614c942d.diff

LOG: llvm: Export `ilist_node_base` template specialization (#168094)

The core LLVM library implements a specialization for
`ilist_node_base<true, void>`, which is used by other components. This
is needed to link properly when building LLVM as a library on Windows.

This effort is tracked in #109483.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/ilist_node_base.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/ilist_node_base.h b/llvm/include/llvm/ADT/ilist_node_base.h
index 49b197d3466d9..937e7d060e489 100644
--- a/llvm/include/llvm/ADT/ilist_node_base.h
+++ b/llvm/include/llvm/ADT/ilist_node_base.h
@@ -67,6 +67,9 @@ class ilist_node_base : public ilist_detail::node_base_prevnext<
                             EnableSentinelTracking>,
                         public ilist_detail::node_base_parent<ParentTy> {};
 
+// Specialization implemented in the core LLVM library.
+template class LLVM_ABI ilist_node_base<true, void>;
+
 } // end namespace llvm
 
 #endif // LLVM_ADT_ILIST_NODE_BASE_H


        


More information about the llvm-commits mailing list