| commit | 7c1f408636d2d2cb2bc5890735d6cac1658dd28e | [log] [tgz] |
|---|---|---|
| author | Anna Zaks <ganna@apple.com> | Thu Feb 07 23:05:37 2013 +0000 |
| committer | Anna Zaks <ganna@apple.com> | Thu Feb 07 23:05:37 2013 +0000 |
| tree | b8986b0c3b08826fec7be8c744ff0c2a662cc1b5 | |
| parent | 6092dc54550217336e9a13eb0f7121984c1251cb [diff] |
[analyzer] Don't reinitialize static globals more than once along a path This patch makes sure that we do not reinitialize static globals when the function is called more than once along a path. The motivation is code with initialization patterns that rely on 2 static variables, where one of them has an initializer while the other does not. Currently, we reset the static variables with initializers on every visit to the function along a path. llvm-svn: 174676