Fix some -Wreorder issues.

llvm-svn: 305497
This commit is contained in:
Zachary Turner 2017-06-15 19:45:25 +00:00
parent cddaf8728f
commit 79bda47900
3 changed files with 2 additions and 3 deletions

View File

@ -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();
}

View File

@ -38,7 +38,6 @@ public:
private:
std::string typeIndex(codeview::TypeIndex TI) const;
uint32_t Width;
LinePrinter &P;
bool RecordBytes = false;
codeview::LazyRandomTypeCollection &Types;

View File

@ -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;
};