summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-03-01 05:27:01 +0000
committerFangrui Song <maskray@google.com>2019-03-01 05:27:01 +0000
commitf4b25f700a4c555711a746befe7ca3a6e93e621d (patch)
treea3e5a3324d182408bddcb33ddbc18a0f179f7945 /clang/lib/Lex/Preprocessor.cpp
parent7507208a9adfebcd950aacd223bcae2c1283896f (diff)
downloadbcm5719-llvm-f4b25f700a4c555711a746befe7ca3a6e93e621d.tar.gz
bcm5719-llvm-f4b25f700a4c555711a746befe7ca3a6e93e621d.zip
[ConstantHoisting] Call cleanup() in ConstantHoistingPass::runImpl to avoid dangling elements in ConstIntInfoVec for new PM
Summary: ConstIntInfoVec contains elements extracted from the previous function. In new PM, releaseMemory() is not called and the dangling elements can cause segfault in findConstantInsertionPoint. Rename releaseMemory() to cleanup() to deliver the idea that it is mandatory and call cleanup() in ConstantHoistingPass::runImpl to fix this. Reviewers: ormris, zzheng, dmgreen, wmi Reviewed By: ormris, wmi Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58589 llvm-svn: 355174
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud