[llvm-commits] [llvm] r75567 - /llvm/trunk/lib/VMCore/Instruction.cpp
Owen Anderson
resistor at mac.com
Wed Jul 15 02:20:18 PDT 2009
On Jul 15, 2009, at 2:07 AM, Eli Friedman wrote:
> On Wed, Jul 15, 2009 at 1:39 AM, Duncan Sands<baldrick at free.fr> wrote:
>>> FreeInst is trapping.
>>
>> Really?
>
> Anything that touches memory is trapping because it'll crash on an
> invalid pointer.
Does free() actually dereference the pointer? I don't think so, ergo
no trapping.
It's probably undefined what happens when you free an invalid pointer,
so we can choose to do whatever we want with it, but I see no
particular reason to require preserving trapping behavior for it.
--Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090715/07bcbf58/attachment.bin>
More information about the llvm-commits
mailing list