summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/DebugInfo/PDB/UDTLayout.h4
-rw-r--r--llvm/lib/DebugInfo/PDB/UDTLayout.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/DebugInfo/PDB/UDTLayout.h b/llvm/include/llvm/DebugInfo/PDB/UDTLayout.h
index f7fdb7cdad3..fca2d43bb3e 100644
--- a/llvm/include/llvm/DebugInfo/PDB/UDTLayout.h
+++ b/llvm/include/llvm/DebugInfo/PDB/UDTLayout.h
@@ -112,10 +112,10 @@ protected:
void addChildToLayout(std::unique_ptr<StorageItemBase> Child);
- uint32_t SizeOf = 0;
+ const PDBSymbol &SymbolBase;
std::string Name;
+ uint32_t SizeOf = 0;
- const PDBSymbol &SymbolBase;
BitVector UsedBytes;
std::vector<std::unique_ptr<PDBSymbol>> NonStorageItems;
std::vector<std::unique_ptr<StorageItemBase>> ChildStorage;
diff --git a/llvm/lib/DebugInfo/PDB/UDTLayout.cpp b/llvm/lib/DebugInfo/PDB/UDTLayout.cpp
index 525913c1865..5751e020cb7 100644
--- a/llvm/lib/DebugInfo/PDB/UDTLayout.cpp
+++ b/llvm/lib/DebugInfo/PDB/UDTLayout.cpp
@@ -42,8 +42,8 @@ StorageItemBase::StorageItemBase(const UDTLayoutBase &Parent,
const PDBSymbol &Symbol,
const std::string &Name,
uint32_t OffsetInParent, uint32_t Size)
- : Parent(Parent), Symbol(Symbol), Name(Name), SizeOf(Size),
- OffsetInParent(OffsetInParent) {
+ : Parent(Parent), Symbol(Symbol), Name(Name),
+ OffsetInParent(OffsetInParent), SizeOf(Size) {
UsedBytes.resize(SizeOf, true);
}
OpenPOWER on IntegriCloud