[PATCH] D24754: [cleanup] Remove excessive padding from RedeclarableResult

Alexander Shaposhnikov via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 21 20:50:02 PDT 2016


alexshap added inline comments.

================
Comment at: lib/Serialization/ASTReaderDecl.cpp:154
@@ -153,3 +153,3 @@
     public:
-      RedeclarableResult(GlobalDeclID FirstID, Decl *MergeWith, bool IsKeyDecl)
-          : FirstID(FirstID), MergeWith(MergeWith), IsKeyDecl(IsKeyDecl) {}
+      RedeclarableResult(Decl *MergeWith, GlobalDeclID FirstID, bool IsKeyDecl)
+          : MergeWith(MergeWith), FirstID(FirstID), IsKeyDecl(IsKeyDecl) {}
----------------
vsk wrote:
> Why do you need to change the order of the parameters in the constructor?
To avoid inconsistency. Here the parameters match the fields and it seemed to me that it would be better to update the order. 


Repository:
  rL LLVM

https://reviews.llvm.org/D24754





More information about the cfe-commits mailing list