Skip to content

Commit

Permalink
Avoid braced initialization for default member initializers for MSVC …
Browse files Browse the repository at this point in the history
…2013

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283928 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rnk committed Oct 11, 2016
1 parent 4ba2b03 commit db0c8c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ class DbiStreamBuilder {
msf::WritableStreamRef NamesBuffer;
msf::MutableByteStream ModInfoBuffer;
msf::MutableByteStream FileInfoBuffer;
llvm::SmallVector<DebugStream, (int)DbgHeaderType::Max> DbgStreams{
(int)DbgHeaderType::Max};
llvm::SmallVector<DebugStream, (int)DbgHeaderType::Max> DbgStreams;
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ModiSubstreamBuilder {};
DbiStreamBuilder::DbiStreamBuilder(msf::MSFBuilder &Msf)
: Msf(Msf), Allocator(Msf.getAllocator()), Age(1), BuildNumber(0),
PdbDllVersion(0), PdbDllRbld(0), Flags(0), MachineType(PDB_Machine::x86),
Header(nullptr) {}
Header(nullptr), DbgStreams((int)DbgHeaderType::Max) {}

void DbiStreamBuilder::setVersionHeader(PdbRaw_DbiVer V) { VerHeader = V; }

Expand Down

0 comments on commit db0c8c6

Please sign in to comment.