[llvm] r305497 - Fix some -Wreorder issues.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 12:45:26 PDT 2017


Author: zturner
Date: Thu Jun 15 14:45:25 2017
New Revision: 305497

URL: http://llvm.org/viewvc/llvm-project?rev=305497&view=rev
Log:
Fix some -Wreorder issues.

Modified:
    llvm/trunk/tools/llvm-pdbutil/FormatUtil.h
    llvm/trunk/tools/llvm-pdbutil/MinimalSymbolDumper.h
    llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.h

Modified: llvm/trunk/tools/llvm-pdbutil/FormatUtil.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/FormatUtil.h?rev=305497&r1=305496&r2=305497&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/FormatUtil.h (original)
+++ llvm/trunk/tools/llvm-pdbutil/FormatUtil.h Thu Jun 15 14:45:25 2017
@@ -33,7 +33,7 @@ namespace pdb {
 
 template <typename T> static std::string formatUnknownEnum(T Value) {
   return formatv("unknown ({0})",
-                 static_cast<std::underlying_type<T>::type>(Value))
+                 static_cast<typename std::underlying_type<T>::type>(Value))
       .str();
 }
 

Modified: llvm/trunk/tools/llvm-pdbutil/MinimalSymbolDumper.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/MinimalSymbolDumper.h?rev=305497&r1=305496&r2=305497&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/MinimalSymbolDumper.h (original)
+++ llvm/trunk/tools/llvm-pdbutil/MinimalSymbolDumper.h Thu Jun 15 14:45:25 2017
@@ -38,7 +38,6 @@ public:
 private:
   std::string typeIndex(codeview::TypeIndex TI) const;
 
-  uint32_t Width;
   LinePrinter &P;
   bool RecordBytes = false;
   codeview::LazyRandomTypeCollection &Types;

Modified: llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.h?rev=305497&r1=305496&r2=305497&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.h (original)
+++ llvm/trunk/tools/llvm-pdbutil/MinimalTypeDumper.h Thu Jun 15 14:45:25 2017
@@ -45,8 +45,8 @@ public:
 private:
   StringRef getTypeName(codeview::TypeIndex TI) const;
 
-  uint32_t Width;
   LinePrinter &P;
+  uint32_t Width;
   bool RecordBytes = false;
   codeview::LazyRandomTypeCollection &Types;
 };




More information about the llvm-commits mailing list