[LLVMbugs] [Bug 3651] cast_or_null for op_iterator *does* dereference NULL

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 22 17:56:55 PDT 2010


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

Gabor Greif <ggreif at gmail.com> changed:

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

--- Comment #1 from Gabor Greif <ggreif at gmail.com> 2010-10-22 19:56:54 CDT ---
The *cast_or_null<TO>(STH) routines now always take a pointer, and no arbitrary
simplifications take place any more.
The NULLness check is thus trivial now and I believe that these routines cannot
exhibit the erroneous behaviour described in the PR any more.

see
<http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Casting.h?revision=114282&view=markup>

Closing PR.

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