aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land.
LGTM aside from some small commenting nits. However, I leave it to @erik.pilkington to make the final sign-off. ================ Comment at: lib/CodeGen/CGDeclCXX.cpp:68 + // Honor __attribute__((no_destroy)) and bail instead of attempting + // to emit a reference to a possibly non-existant destructor, which + // in turn can cause a crash. This will result in a global constructor ---------------- non-existant -> nonexistent ================ Comment at: lib/CodeGen/CGDeclCXX.cpp:72 + // attribute. This also checks for -fno-c++-static-destructors and + // bails even if the attribute is not present. (D54344) + if (D.isNoDestroy(CGF.getContext())) ---------------- Drop the (D54344) from the comment. Repository: rC Clang https://reviews.llvm.org/D54344 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits