aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/MallocChecker.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
commit2b6876173b36d92aaf379c29cb339d91b4d358ee (patch)
tree74f68181c24bf0b090b9b17a18d7ccbcc3fae7ca /lib/StaticAnalyzer/Checkers/MallocChecker.cpp
parent250172a851a886c0763b5fd61c20bf21791c21e9 (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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/MallocChecker.cpp')
0 files changed, 0 insertions, 0 deletions