[PATCH] D12385: Generating Assumption loads fix

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 16:25:05 PDT 2015


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

LGTM with some comment tweaks.


================
Comment at: lib/CodeGen/CGClass.cpp:1861
@@ +1860,3 @@
+  // We also have to make sure if we can refer to vtable:
+  // - If vtable is external then it's safe to use it (for availabe_externally
+  //   CGVTables will make sure if it can emit it).
----------------
Typo "availabe"

================
Comment at: lib/CodeGen/CGClass.cpp:1863
@@ +1862,3 @@
+  //   CGVTables will make sure if it can emit it).
+  // - Otherwise we can refer to vtable if it's unused.
+  // FIXME: If vtable is used by ctor/dtor, we are always safe to refer to it.
----------------
unused -> safe to speculatively emit


http://reviews.llvm.org/D12385





More information about the cfe-commits mailing list