[PATCH] D149061: [clang] remove dereferencing of invalid pointer

Ashay Rane via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 15:15:20 PDT 2023


ashay-github added a comment.

In D149061#4292974 <https://reviews.llvm.org/D149061#4292974>, @nickdesaulniers wrote:

> It would have been good to include your test case though.

Ah, I forgot to mention that the error was also reproducible using an existing test (the one in clang/test/CodeGenCXX/mangle-nttp-anon-union.cpp).  The specific case that I mentioned ("_Z5dummyIXtl8wrapper1IdEtlNS1_Ut_Edi9RightNametlNS2_Ut_ELd405ec00000000000EEEEEEvv") is just a subset of the mangle-nttp-anon-union.cpp test, specifically the lines below:

  dummy<wrapper1<double>{123.0}>();
  // CHECK: call void @_Z5dummyIXtl8wrapper1IdEtlNS1_Ut_Edi9RightNametlNS2_Ut_ELd405ec00000000000EEEEEEvv
  // DEMANGLED: call void @void dummy<wrapper1<double>{wrapper1<double>::'unnamed'{.RightName = wrapper1<double>::'unnamed'::'unnamed'{0x1.ec{{.*}}p+6}}}>()()


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149061/new/

https://reviews.llvm.org/D149061



More information about the llvm-commits mailing list