Go to file
David Majnemer b7adf34ee0 AliasSetTracker: UnknownInsts should contribute to the refcount
AliasSetTracker::addUnknown may create an AliasSet devoid of pointers
just to contain an instruction if no suitable AliasSet already exists.
It will then AliasSet::addUnknownInst and we will be done.

However, it's possible for addUnknown to choose an existing AliasSet to
addUnknownInst.
If this were to occur, we are in a bit of a pickle: removing pointers
from the AliasSet can cause the entire AliasSet to become destroyed,
taking our unknown instructions out with them.

Instead, keep track whether or not our AliasSet has any unknown
instructions.

This fixes PR21582.

llvm-svn: 222338
2014-11-19 09:41:05 +00:00
clang Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:47 +00:00
clang-tools-extra Update for LLVM API change to make Small(Ptr)Set::insert return pair<iterator, bool> as per the C++ standard's associative container concept. 2014-11-19 07:49:54 +00:00
compiler-rt Make the ASan OS X DYLD_INSERT_LIBRARIES detection path-independent 2014-11-19 01:31:59 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Don't include <stddef.h> 2014-11-18 14:19:27 +00:00
libcxx Overhaul and separate nullptr_t tests to pass with C++03. 2014-11-19 05:49:03 +00:00
libcxxabi Remove accidentally commited line in commit. Sorry 2014-11-19 05:00:57 +00:00
lld Revert "[ELF] Sectionkey should also contain path." 2014-11-19 06:47:29 +00:00
lldb Add additional checks to the SavedLocationForRegister method 2014-11-19 02:29:52 +00:00
llvm AliasSetTracker: UnknownInsts should contribute to the refcount 2014-11-19 09:41:05 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Enable SCEV based code generation by default 2014-11-16 22:50:23 +00:00