r230589 - Fix a [-Werror,-Wreorder] initialization ordering error.

Eric Christopher echristo at gmail.com
Wed Feb 25 16:29:55 PST 2015


Author: echristo
Date: Wed Feb 25 18:29:54 2015
New Revision: 230589

URL: http://llvm.org/viewvc/llvm-project?rev=230589&view=rev
Log:
Fix a [-Werror,-Wreorder] initialization ordering error.

Modified:
    cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp

Modified: cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp?rev=230589&r1=230588&r2=230589&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp (original)
+++ cfe/trunk/lib/Frontend/Rewrite/InclusionRewriter.cpp Wed Feb 25 18:29:54 2015
@@ -94,8 +94,8 @@ InclusionRewriter::InclusionRewriter(Pre
                                      bool UseLineDirectives)
     : PP(PP), SM(PP.getSourceManager()), OS(OS), MainEOL("\n"),
       PredefinesBuffer(nullptr), ShowLineMarkers(ShowLineMarkers),
-      LastInsertedFileChange(FileChanges.end()),
-      UseLineDirectives(UseLineDirectives) {}
+      UseLineDirectives(UseLineDirectives),
+      LastInsertedFileChange(FileChanges.end()) {}
 
 /// Write appropriate line information as either #line directives or GNU line
 /// markers depending on what mode we're in, including the \p Filename and





More information about the cfe-commits mailing list