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;
   };
 }


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;
   };
 }
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to