HomePhabricator

[analyzer] Remove dead optimization for MaterializeTemporaryExpr.

Authored by jordan_rose on Jul 25 2013, 3:32 PM.

Description

[analyzer] Remove dead optimization for MaterializeTemporaryExpr.

Previously, we tried to avoid creating new temporary object regions if
the value to be materialized itself came from a temporary object region.
However, once we became more strict about lvalues vs. rvalues (months
ago), this optimization became dead code, because the input to this
function will always be an rvalue (i.e. a symbolic value or compound
value rather than a region, at least for structs).

This would be a nice optimization to keep, but removing it makes it
simpler to reason about temporary regions.

llvm-svn: 187160

Details

Committed
jordan_roseJul 25 2013, 3:32 PM
Parents
rG13235dadab9d: Using a different loop induction variable than the enclosing scope. No…
Branches
Unknown
Tags
Unknown