[PATCH] D28505: CGDecl: Skip static variable initializers in unreachable code

Richard Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 9 18:09:39 PST 2017


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

Yes, this is correct; per [stmt.dcl]/5, the destructor only runs if the object was constructed.


Repository:
  rL LLVM

https://reviews.llvm.org/D28505





More information about the cfe-commits mailing list