[llvm] r278838 - Remove excessive padding from LineNoCacheTy

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 12:20:11 PDT 2016


Author: d0k
Date: Tue Aug 16 14:20:10 2016
New Revision: 278838

URL: http://llvm.org/viewvc/llvm-project?rev=278838&view=rev
Log:
Remove excessive padding from LineNoCacheTy

The struct LineNoCacheTy is in SourceMgr.cpp inside anonymous namespace.
This diff changes the order of fields and removes the excessive padding
(8 bytes).

Patch by Alexander Shaposhnikov!

Differential revision: https://reviews.llvm.org/D23546

Modified:
    llvm/trunk/lib/Support/SourceMgr.cpp

Modified: llvm/trunk/lib/Support/SourceMgr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/SourceMgr.cpp?rev=278838&r1=278837&r2=278838&view=diff
==============================================================================
--- llvm/trunk/lib/Support/SourceMgr.cpp (original)
+++ llvm/trunk/lib/Support/SourceMgr.cpp Tue Aug 16 14:20:10 2016
@@ -26,8 +26,8 @@ static const size_t TabStop = 8;
 
 namespace {
   struct LineNoCacheTy {
-    unsigned LastQueryBufferID;
     const char *LastQuery;
+    unsigned LastQueryBufferID;
     unsigned LineNoOfQuery;
   };
 }




More information about the llvm-commits mailing list