summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/FunctionIndexObjectFile.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-10-04 11:19:13 +0000
committerTobias Grosser <tobias@grosser.es>2015-10-04 11:19:13 +0000
commitd78616f98a9ec11320ab9471cdd74bb2c57ca35c (patch)
tree5af3874e805f2fb6ad713826496b47c16a70cbb8 /llvm/lib/Object/FunctionIndexObjectFile.cpp
parentecdfae6b152cea64331196c5aea422ffec60ab01 (diff)
downloadbcm5719-llvm-d78616f98a9ec11320ab9471cdd74bb2c57ca35c.tar.gz
bcm5719-llvm-d78616f98a9ec11320ab9471cdd74bb2c57ca35c.zip
Make ScopAnnotator a function-local variable to ensure it is freed at each run
When the ScopAnnotator was a class member variable some of the maps it contains have not been properly cleared. As a result we had dangling pointers to llvm::Value(s) which got detected by the AssertingVH we recently added. No test case as this issue is hard to reproduce reliably as subsequent optimizations need to delete some of the llvm::Values we still keep in our lists. llvm-svn: 249269
Diffstat (limited to 'llvm/lib/Object/FunctionIndexObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud