summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-02 23:56:33 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-02 23:56:33 +0000
commit48bd5fddf3da126b5852d84149bd22728bd38f76 (patch)
tree4a611625fe0b8f42e439fbebefbdd9b53ec7e53b /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parentd2472d4cdbee3c5ab5e5edfd080406a9f3a41a6e (diff)
downloadbcm5719-llvm-48bd5fddf3da126b5852d84149bd22728bd38f76.tar.gz
bcm5719-llvm-48bd5fddf3da126b5852d84149bd22728bd38f76.zip
Change LocationContextMap to be a temporary instead of shared variable in BugReporter.
BugReporter is used to process ALL bug reports. By using a shared map, we are having mappings from different PathDiagnosticPieces to LocationContexts well beyond the point where we are processing a given report. This state is inherently error prone, and is analogous to using a global variable. Instead, just create a temporary map, one per report, and when we are done with it we throw it away. No extra state. llvm-svn: 180974
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud