[PATCH] D45122: [DebugInfo] Add a new DI flag to record if a C++ record is a trivial type

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 14:06:48 PDT 2018


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm

We should also be able to use this to mark explicitly defaulted but trivial special members, i.e.:

  struct Foo {
    int x;
    ~Foo() = default;
  };
  Foo gv;

Right now we emit a destructor, which is silly.


Repository:
  rL LLVM

https://reviews.llvm.org/D45122





More information about the llvm-commits mailing list