[llvm-branch-commits] [clang] [clang-tools-extra] [lldb] [clang] fix getTemplateInstantiationArgs (PR #199528)

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 26 06:36:03 PDT 2026


================
@@ -475,14 +476,18 @@ class FunctionTemplateSpecializationInfo final
   /// The function template from which this function template
   /// specialization was generated.
   ///
-  /// The two bits contain the top 4 values of TemplateSpecializationKind.
-  llvm::PointerIntPair<FunctionTemplateDecl *, 2> Template;
+  /// The three bits contain the TemplateSpecializationKind.
----------------
erichkeane wrote:

Can we actually take 3 bits on all platforms?  I believe we end up only having 2 here for 32 bit platforms, right?  I've definitely run into this before.  We might have to split this off.

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


More information about the llvm-branch-commits mailing list