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

Saleem Abdulrasool <compn...@compnerd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dgre...@apple.com,
                   |                            |rjmcc...@apple.com
         Resolution|---                         |INVALID

--- Comment #1 from Saleem Abdulrasool <compn...@compnerd.org> ---
Doug and John can correct me if I am wrong, but I believe that the current
behavior is correct.

The lifetime is being extended here.  The type can have a dealloc method that
performs some operation with unknown side-effects.  By eliminating the type, we
have changed the semantics of the program.  Since this can occur by other means
at load time, we cannot actually determine if the type is actually unused.  So,
we would give a false warning here.

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