[lld] r306071 - [COFF] Fix SECTION and SECREL relocation handling for absolute symbols

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 23 11:27:45 PDT 2017


This is https://bugs.llvm.org/show_bug.cgi?id=31373

Warning fixed in r306135.

On Fri, Jun 23, 2017 at 11:14 AM, Reid Kleckner <rnk at google.com> wrote:

> On Thu, Jun 22, 2017 at 5:39 PM, Peter Collingbourne <peter at pcc.me.uk>
> wrote:
>
>> I'm getting this warning building lld with this change.
>>
>> tools/lld/COFF/Writer.cpp:222:13: warning: unused variable 'D'
>> [-Wunused-variable]
>>   if (auto *D = dyn_cast<DefinedAbsolute>(this))
>>             ^
>>
>
> Curious, this does not reproduce in my Linux clang build.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170623/6823dfba/attachment.html>


More information about the llvm-commits mailing list