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 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
| parent | 6092dc54550217336e9a13eb0f7121984c1251cb (diff) | |
| download | llvm-7c1f408636d2d2cb2bc5890735d6cac1658dd28e.zip llvm-7c1f408636d2d2cb2bc5890735d6cac1658dd28e.tar.gz llvm-7c1f408636d2d2cb2bc5890735d6cac1658dd28e.tar.bz2 | |
[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 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions
