[lld] r298251 - Initialize dot.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 07:33:34 PDT 2017


Author: rafael
Date: Mon Mar 20 09:33:33 2017
New Revision: 298251

URL: http://llvm.org/viewvc/llvm-project?rev=298251&view=rev
Log:
Initialize dot.

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

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=298251&r1=298250&r2=298251&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Mon Mar 20 09:33:33 2017
@@ -430,6 +430,7 @@ void LinkerScriptBase::processCommands(O
   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;




More information about the llvm-commits mailing list