]> granicus.if.org Git - clang/commit
[analyzer] Improve test from r207486.
authorJordan Rose <jordan_rose@apple.com>
Tue, 29 Apr 2014 17:08:17 +0000 (17:08 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 29 Apr 2014 17:08:17 +0000 (17:08 +0000)
commit0b65390e16100b8d02a363d82a609c1f2617cdfb
tree46c61d3b5f40c199083ffa1d7c366da5211a0820
parentfc2409b63768662b077c920d5b4a84250d100b2e
[analyzer] Improve test from r207486.

The constructor that comes right before a variable declaration in the CFG might
not be the initialization of that variable. Previously, we just checked that
the variable's initializer expression was different from the construction
expression, but forgot to see whether the variable had an initializer expression
at all.

Thanks for the prompting, David.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207562 91177308-0d34-0410-b5e6-96231b3b80d8
test/Analysis/ctor.mm