summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/TarWriterTest.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-03-11 01:15:48 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-03-11 01:15:48 +0000
commit3f1e8e0102b482973db88cfe4be92b80bc02fba3 (patch)
treede31afff93854978e0b372091cbf7ca0b7b18b81 /llvm/unittests/Support/TarWriterTest.cpp
parente4885f89993ea45a18b085412d09f32330fb3edb (diff)
downloadbcm5719-llvm-3f1e8e0102b482973db88cfe4be92b80bc02fba3.tar.gz
bcm5719-llvm-3f1e8e0102b482973db88cfe4be92b80bc02fba3.zip
Use a WeakVH for UnknownInstructions in AliasSetTracker
Summary: This change solves the same problem as D30726, except that this only throws out the bathwater. AST was not correctly tracking and deleting UnknownInstructions via handles. The existing code only tracks "pointers" in its `ASTCallbackVH`, so an UnknownInstruction (that isn't also def'ing a pointer used by another memory instruction) never gets a `ASTCallbackVH`. There are two other ways to solve this problem: - Use the `PointerRec` scheme for both known and unknown instructions. - Use a `CallbackVH` that erases the offending Instruction from the UnknownInstruction list. Both of the above changes seemed to be significantly (and unnecessarily IMO) more complex than this. Reviewers: chandlerc, dberlin, hfinkel, reames Subscribers: mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D30849 llvm-svn: 297539
Diffstat (limited to 'llvm/unittests/Support/TarWriterTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud