Remove excessive padding from LineNoCacheTy
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 16 Aug 2016 19:20:10 +0000 (19:20 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 16 Aug 2016 19:20:10 +0000 (19:20 +0000)
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

llvm-svn: 278838

llvm/lib/Support/SourceMgr.cpp

index 395c29b..b2f87d6 100644 (file)
@@ -26,8 +26,8 @@ static const size_t TabStop = 8;
 
 namespace {
   struct LineNoCacheTy {
-    unsigned LastQueryBufferID;
     const char *LastQuery;
+    unsigned LastQueryBufferID;
     unsigned LineNoOfQuery;
   };
 }