kazutakahirata wrote:

@efriedma-quic @Alexander-Johnston The dangling `friend class 
SaveAndRestoreLocation` declaration was suppressing `-Wunused-private-field` on 
`CGDebugInfo`, hiding the unused fields added in #224277.

In `CGDebugInfo::CreateType`, those fields look unneeded:

- `HLSLIntangibleTypes.def` calls `getOrCreateStructPtrType`, which needs a 
`DIType *&` cache field.
- `HLSLPackedTypes.def` calls `DBuilder.createBasicType` directly, so it does 
not use cache fields in `CGDebugInfo.h`.

https://github.com/llvm/llvm-project/pull/239487
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to