HomePhabricator

[analyzer] Look through temporary destructors when finding a region to…

Authored by jordan_rose on Apr 4 2014, 7:01 PM.

Description

[analyzer] Look through temporary destructors when finding a region to construct.

Fixes a false positive when temporary destructors are enabled where a temporary
is destroyed after a variable is constructed but before the VarDecl itself is
processed, which occurs when the variable is in the condition of an if or while.

Patch by Alex McCarthy, with an extra test from me.

llvm-svn: 205661

Details

Committed
jordan_roseApr 4 2014, 7:01 PM
Parents
rG41e9b1d55958: [PowerPC] Remove unused TM member variable to unbreak build
Branches
Unknown
Tags
Unknown