OSDN Git Service

GlobalsAAResult: Try to fix crash.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 14 Sep 2015 06:16:44 +0000 (06:16 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 14 Sep 2015 06:16:44 +0000 (06:16 +0000)
commit8f188e0ea735ac9383a65a0d1c846eb790c2ec74
treeb7135ad55b87c34abff2e2ec8a1b333a50330ab8
parent6fa20dc3db271e03d43c97e8b9640f2ad6b4ba98
GlobalsAAResult: Try to fix crash.

DeletionCallbackHandle holds GAR in its creation. It assumes;

  - It is registered as CallbackVH. It should not be moved in its life.
  - Its parent, GAR, may be moved.

To move list<DeletionCallbackHandle> GlobalsAAResult::Handles,
GAR must be updated with the destination in GlobalsAAResult(&&).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247534 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/GlobalsModRef.h
lib/Analysis/GlobalsModRef.cpp