diff options
author | Anna Zaks <ganna@apple.com> | 2013-02-07 23:05:37 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2013-02-07 23:05:37 +0000 |
commit | 7c1f408636d2d2cb2bc5890735d6cac1658dd28e (patch) | |
tree | b8986b0c3b08826fec7be8c744ff0c2a662cc1b5 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | 6092dc54550217336e9a13eb0f7121984c1251cb (diff) | |
download | bcm5719-llvm-7c1f408636d2d2cb2bc5890735d6cac1658dd28e.tar.gz bcm5719-llvm-7c1f408636d2d2cb2bc5890735d6cac1658dd28e.zip |
[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
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions