[LLVMbugs] [Bug 2830] Cpp Backend doesn' t generate correct code for Switch instructions

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Oct 5 08:08:15 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2830


Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #4 from Anton Korobeynikov <asl at math.spbu.ru>  2008-10-05 10:08:14 ---
(In reply to comment #1)
> Created an attachment (id=2040)
 --> (http://llvm.org/bugs/attachment.cgi?id=2040) [details]
> Patch to fix bug.
> 
> One way to fix this bug is to remove that code that generates calls to
> 'Constant::getNullValue', this will allow the correct constant type to be
> generated.
I agree, that having sane constant type is a right way to fix, otherwise we
will need to end with cast<ConstantInt> in bunch of places.

Patch applied as r57110. Thanks!


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list