summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2013-02-07 23:05:37 +0000
committerAnna Zaks <ganna@apple.com>2013-02-07 23:05:37 +0000
commit7c1f408636d2d2cb2bc5890735d6cac1658dd28e (patch)
treeb8986b0c3b08826fec7be8c744ff0c2a662cc1b5 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
parent6092dc54550217336e9a13eb0f7121984c1251cb (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud