Initialize dot.

This would fix an initialized error found by msan. The error is not
showing after r298241, but it is not clear why.

llvm-svn: 298251
This commit is contained in:
Rafael Espindola 2017-03-20 14:33:33 +00:00
parent a525a2ba75
commit 49592cf679
1 changed files with 1 additions and 0 deletions

View File

@ -430,6 +430,7 @@ void LinkerScriptBase::processCommands(OutputSectionFactory &Factory) {
Aether = make<OutputSection>("", 0, SHF_ALLOC);
Aether->SectionIndex = 1;
CurOutSec = Aether;
Dot = 0;
for (unsigned I = 0; I < Opt.Commands.size(); ++I) {
auto Iter = Opt.Commands.begin() + I;