[LLVMdev] [BUG] Support for -W[no-]unused-but-set-{variable, parameter}

Ramkumar Ramachandra artagnon at gmail.com
Wed Jul 10 11:43:12 PDT 2013


David Blaikie wrote:
> FWIW I'd sort of prefer just to have a generalized dead store warning
> (special casing for parameters doesn't seem all that important -
> though I could be wrong).

Does LLVM have some existing code to detect a dead store that I can
just hook into to fix the bug?  I agree that the {variable,parameter}
might not be important in practice, but we need to be compatible with
GCC.



More information about the llvm-dev mailing list