[lld] r233088 - [Mips] Suppress "right shift by too large amount" warning

Simon Atanasyan simon at atanasyan.com
Wed Mar 25 10:55:29 PDT 2015


On Wed, Mar 25, 2015 at 8:42 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
> On Wed, Mar 25, 2015 at 10:38 AM, Simon Atanasyan <simon at atanasyan.com>
> wrote:
>>
>> By the way, what do you suggest to silence the VC++ warning?
>
> Disabling the warning, this is a false positive because some instantiations
> of the template produce non-zero results out of this shift and the fact that
> some other instantiations always produce 0 is fine. Same goes for
> template-conditionally dead code, etc.

In fact I am satisfied by the current code as well as by you
suggestion. The only problem - I do not have access to VC++ so cannot
surround the code by appropriate warning disabling pragmas and check
that they work.

-- 
Simon Atanasyan



More information about the llvm-commits mailing list