[clang] [HLSL] Fix debug info generation for RWBuffer types (PR #119041)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 9 12:47:11 PST 2024


================
@@ -2021,28 +2021,10 @@ llvm::DISubroutineType *CGDebugInfo::getOrCreateInstanceMethodType(
   // ThisPtr may be null if the member function has an explicit 'this'
   // parameter.
   if (!ThisPtr.isNull()) {
-    const CXXRecordDecl *RD = ThisPtr->getPointeeCXXRecordDecl();
-    if (isa<ClassTemplateSpecializationDecl>(RD)) {
----------------
bogner wrote:

Is removing this entire block NFC? I'm surprised that this doesn't affect anything. If so, we should probably make the NFC change separately from the HLSL specific one so that it's clear what (isn't) changing.

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


More information about the cfe-commits mailing list