[PATCH] D23546: Remove excessive padding from LineNoCacheTy

Alexander Shaposhnikov via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 16 03:33:31 PDT 2016


alexshap created this revision.
alexshap added a reviewer: lattner.
alexshap added a subscriber: cfe-commits.
alexshap changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users".

The struct LineNoCacheTy is in SourceMgr.cpp inside anonymous namespace.
This diff changes the order of fields and removes the excessive padding (8 bytes).
Test plan: make -j8 check-llvm-unit (passed).

https://reviews.llvm.org/D23546

Files:
  lib/Support/SourceMgr.cpp

Index: lib/Support/SourceMgr.cpp
===================================================================
--- lib/Support/SourceMgr.cpp
+++ lib/Support/SourceMgr.cpp
@@ -26,8 +26,8 @@
 
 namespace {
   struct LineNoCacheTy {
+    const char *LastQuery;
     unsigned LastQueryBufferID;
-    const char *LastQuery;
     unsigned LineNoOfQuery;
   };
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23546.68153.patch
Type: text/x-patch
Size: 347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160816/acb76ad0/attachment.bin>


More information about the cfe-commits mailing list