This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Re-enable constructor inlining when lifetime extension through fields occurs.
ClosedPublic

Authored by NoQ on Mar 7 2018, 5:35 PM.

Details

Summary

In code like

const int &x = C().x;

destructors were missing in the CFG, so it was unsafe to inline the constructors, so constructor inlining was disabled in D43689. But i think i found a way to fix the CFG in D44238, so it should be safe to re-enable it now.

Diff Detail

Repository
rC Clang