[Lldb-commits] [PATCH] D101237: [lldb] Fix [[no_unique_address]] and libstdc++ 11's std::unique_ptr

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Apr 25 07:56:15 PDT 2021


teemperor added a comment.

You're right, we can't fix up the types afterwards so I guess inferring the attribute isn't an option here.

I'll try to find some time to properly look at this next week, but in the meantime I pushed your bug report into creduce over night and that's what it spit out (I pasted the same into the bug report):

  template <typename a> struct b { [[__no_unique_address__]] a c; };
  template <unsigned long, typename... d> struct e;
  template <unsigned long f, typename a, typename... g>
  struct e<f, a, g...> : e<1, g...>, b<a> {};
  template <unsigned long f, typename a> struct e<f, a> : b<a> {};
  template <typename... d> class h : e<0, d...> {};
  class A {
    struct i {};
    using j = i;
    h<j, int> k;
  } iup;
  int main() {
    return sizeof(iup);
  }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101237



More information about the lldb-commits mailing list