]> granicus.if.org Git - llvm/commit
DAGCombiner: fix use-after-free when merging consecutive stores
authorNicolai Haehnle <nhaehnle@gmail.com>
Thu, 3 Nov 2016 14:25:04 +0000 (14:25 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Thu, 3 Nov 2016 14:25:04 +0000 (14:25 +0000)
commitde5ede6734f56ec0c01f6b2f099ce717dd1915c9
treedd6ca0373d9158d7b11ff055ff2c541d7bc8e94f
parent58c4c962e29fa0afd88d74abcdaf1d987d9fdea7
DAGCombiner: fix use-after-free when merging consecutive stores

Summary:
Have MergeConsecutiveStores explicitly return information about the stores
that were merged, so that we can safely determine whether the starting
node has been freed.

Reviewers: chandlerc, bogner, niravd

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25601

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp