[LLVMbugs] [Bug 2236] Bogus defined but not used diagnostics.

Neil Booth neil at daikokuya.co.uk
Mon Apr 21 06:27:12 PDT 2008


bugzilla-daemon at cs.uiuc.edu wrote:-

> http://llvm.org/bugs/show_bug.cgi?id=2236
> 
> 
> Nate Begeman <natebegeman at mac.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|ASSIGNED                    |RESOLVED
>          Resolution|                            |FIXED
> 
> 
> 
> 
> --- Comment #2 from Nate Begeman <natebegeman at mac.com>  2008-04-20 15:40:56 ---
> Fixed here, and added the example as a test.  Let me know if you find anything
> else that doesn't work :)
> 
> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080414/005374.html

No, it doesn't work yet.  Apparently you need -emit-llvm to cause the
problem.

Hopefully this isn't one of those diagnostics that depends upon code
generation or optimization....  It is easy to emit this diagnostic
correctly with simple semantic analysis.

Neil.



More information about the llvm-bugs mailing list