commit | 9874f597ef5d5748695c88daaa9a3208f95c2032 | [log] [tgz] |
---|---|---|
author | Jordan Rose <jordan_rose@apple.com> | Sat Sep 08 01:24:38 2012 +0000 |
committer | Jordan Rose <jordan_rose@apple.com> | Sat Sep 08 01:24:38 2012 +0000 |
tree | 0f5284de4c23521ce35592aedfa91fbd3342f557 | |
parent | 9f6ec8253e3ec3e9722ca7e4599f977db2f786ef [diff] |
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163442 91177308-0d34-0410-b5e6-96231b3b80d8