HomePhabricator

[analyzer] Cast the result of a placement new-expression to the correct type.

Authored by jordan_rose on Sep 7 2012, 6:24 PM.

Description

[analyzer] Cast the result of a placement new-expression to the correct type.

This is necessary because further analysis will assume that the SVal's
type matches the AST type. This caused a crash when trying to perform
a derived-to-base cast on a C++ object that had been new'd to be another
object type.

Yet another crash in PR13763.

llvm-svn: 163442

Details