<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 23, 2016 at 11:03 AM, Rui Ueyama via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Author: ruiu<br>
Date: Wed Nov 23 13:03:35 2016<br>
New Revision: 287797<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=287797&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=287797&view=rev</a><br>
Log:<br>
Fix uninitialized variable access.<br>
<br>
Modified:<br>
lld/trunk/ELF/Config.h<br>
<br>
Modified: lld/trunk/ELF/Config.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Config.h?rev=287797&r1=287796&r2=287797&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/lld/trunk/ELF/Config.<wbr>h?rev=287797&r1=287796&r2=<wbr>287797&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- lld/trunk/ELF/Config.h (original)<br>
+++ lld/trunk/ELF/Config.h Wed Nov 23 13:03:35 2016<br>
@@ -145,7 +145,7 @@ struct Configuration {<br>
uint16_t DefaultSymbolVersion = llvm::ELF::VER_NDX_GLOBAL;<br>
uint16_t EMachine = llvm::ELF::EM_NONE;<br>
uint64_t EntryAddr = 0;<br>
- uint64_t ErrorLimit;<br>
+ uint64_t ErrorLimit = 20; // initialize it early so that error() won't complain<br></blockquote><div><br></div><div>Captialization and period at the end is needed.</div><div><br></div><div><a href="http://llvm.org/docs/CodingStandards.html#commenting">http://llvm.org/docs/CodingStandards.html#commenting</a></div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
uint64_t ImageBase;<br>
uint64_t MaxPageSize;<br>
uint64_t ZStackSize;<br>
<br>
<br>
______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>