[PATCH] D11859: Generating vptr assume loads

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 10 21:53:27 PDT 2015

djasper 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);
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.


More information about the cfe-commits mailing list