https://llvm.org/bugs/show_bug.cgi?id=28416

David Majnemer <david.majne...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |david.majne...@gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from David Majnemer <david.majne...@gmail.com> ---
LLVM has not optimized your program into an inconsistent state because calling
malloc is not an observable side effect in and of itself.  If the compiler can
satisfy your use of malloc in a way which doesn't end up calling malloc, that's
ok.

If you did something else with the malloc'd pointer like called
malloc_usable_size (or escaped it through any other mechanism) then that would
be a different story.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to