[llvm-branch-commits] [clang] [clang-tools-extra] [clang] improve class type sugar preservation in pointers to members (PR #130537)

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 19 06:49:20 PDT 2025


================
@@ -1355,7 +1355,7 @@ class BlockPointerTypeLoc : public PointerLikeTypeLoc<BlockPointerTypeLoc,
 };
 
 struct MemberPointerLocInfo : public PointerLikeLocInfo {
-  TypeSourceInfo *ClassTInfo;
+  void *QualifierData = nullptr;
----------------
erichkeane wrote:

Could we instead use one of LLVM's pointer union types? 

Ah, urgh, I see we're inheriting this from `NestedNameSpecifierLoc`.  Its a shame we don't have a better 'thing' to store.  I'm OK leaving a 'fixme' here instead.

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


More information about the llvm-branch-commits mailing list