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

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 10 11:59:23 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)) {
----------------
joaosaffran wrote:

Created a NFC with this change, please take a look here: https://github.com/llvm/llvm-project/pull/119445

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


More information about the cfe-commits mailing list