HomePhabricator

[analyzer] Fix crash when returning C++ objects from ObjC messages-to-nil.

Description

[analyzer] Fix crash when returning C++ objects from ObjC messages-to-nil.

the assertion is in fact incorrect: there is a cornercase in Objective-C++
in which a C++ object is not constructed with a constructor, but merely
zero-initialized. Namely, this happens when an Objective-C message is sent
to a nil and it is supposed to return a C++ object.

Differential Revision: https://reviews.llvm.org/D60988

Details

Committed
NoQApr 25 2019, 7:05 PM
Differential Revision
D60988: [analyzer] Fix crash when returning C++ objects from ObjC messages-to-nil.
Parents
rC359261: [www] Rebuild cxx_dr_status.
Branches
Unknown
Tags
Unknown