diff options
author | Sean Fertile <sfertile@ca.ibm.com> | 2018-04-20 19:56:26 +0000 |
---|---|---|
committer | Sean Fertile <sfertile@ca.ibm.com> | 2018-04-20 19:56:26 +0000 |
commit | 18f17333ddb1d371cc4810cd16fa24040095ddc3 (patch) | |
tree | f8a254b1a867864172420b5c5a318d45b55280ed /clang/unittests/libclang/LibclangTest.cpp | |
parent | 5061b37e9c99c9471c5d9d5dff17a7bab25c05d0 (diff) | |
download | llvm-18f17333ddb1d371cc4810cd16fa24040095ddc3.zip llvm-18f17333ddb1d371cc4810cd16fa24040095ddc3.tar.gz llvm-18f17333ddb1d371cc4810cd16fa24040095ddc3.tar.bz2 |
[PartialInlining] Fix Crash from holding a reference to a destructed ORE.
The callback used to create an ORE for the legacy PI pass caches the allocated
object in a unique_ptr in the runOnModule function, and returns a reference to
that object. Under certian circumstances we can end up holding onto that
reference after the OREs destruction. Rather then allowing the new and legacy
passes to create ORE object in diffrent ways, create the ORE at the point of
use.
Differential Revision: https://reviews.llvm.org/D43219
llvm-svn: 330473
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions