[LLVMbugs] [Bug 4124] null ptr dereferenced

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed May 13 21:28:37 PDT 2009


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


Lang Hames <lhames at gmail.com> changed:

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




--- Comment #3 from Lang Hames <lhames at gmail.com>  2009-05-13 23:28:24 ---
This was being caused by TwoAddressInstructionPass::FindLastUseInMBB returning
an instruction that is not, in fact, the nearest previous use. This in turn
lead to incorrect live interval information and finally the crash during
coalescing. The fault occured because FindLastUseInMBB assumed reg_iterator
would iterate over defs/uses in the order they appear in the basic block. I'm
not sure if this assumption _should_ hold, but it certainly didn't in this
case.

Fix committed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090511/077556.html


-- 
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