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

Saleem Abdulrasool <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected],
                   |                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Saleem Abdulrasool <[email protected]> ---
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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to