Prazek added inline comments.

================
Comment at: lib/CodeGen/CGClass.cpp:1279
@@ +1278,3 @@
+  if (CGM.getCodeGenOpts().StrictVPtrs && BaseVPtrsInitialized)
+    CXXThisValue = Builder.CreateInvariantGroupBarrier(LoadCXXThis());
+
----------------
rjmccall wrote:
> Should this just be in InitializeVTablePointers?
I want to add invariant.group.barrier only if it's needed. F.e. I don't want to 
put before I initialize vptrs for base, or when my class doesn't inherit frome 
anything. I want emit barrier after I will initialize some other vptrs.

InitializeVptrs is called in EmitBaseInitializer, and also I woudnt want to put 
some extra flag if it must produce barrier or not (because it is hard to 
distinguish it from inside)


http://reviews.llvm.org/D12312



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to