[PATCH] D11859: Generating vptr assume loads

Nathan Wilson via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 21:59:32 PDT 2015


nwilson added inline comments.

================
Comment at: lib/CodeGen/CGClass.cpp:2155
@@ +2154,3 @@
+    if (CGM.getCXXABI().canInitializeVPtr(Vptr.VTableClass, Vptr.Base.getBase(),
+                                         Vptr.NearestVBase))
+      InitializeVTablePointer(Vptr);
----------------
djasper wrote:
> nwilson wrote:
> > Looks like the same formatting/tab as above.
> > 
> > This is what I've done when using clang-format, maybe it will fix the issues you've had:
> > ./clang-format -style=llvm -lines="N:M" <FileToFormat> > tmp && cp tmp <FileToFormat>
> > 
> > (Just don't include the less than and greater around the FileToFormat.)
> > 
> You shouldn't need to do this by "hand". There is clang-format-diff.py / git-clang-format for that.
Good to know. Thanks!


http://reviews.llvm.org/D11859





More information about the cfe-commits mailing list