HomePhabricator

[analyzer] Inline constructors for any object with a trivial destructor.

Authored by jordan_rose on Aug 27 2012, 10:50 AM.

Description

[analyzer] Inline constructors for any object with a trivial destructor.

This allows us to better reason about status objects, like Clang's own
llvm::Optional (when its contents are trivially destructible), which are
often intended to be passed around by value.

We still don't inline constructors for temporaries in the general case.

rdar://problem/11986434

llvm-svn: 162681

Details