OSDN Git Service

[SelectionDAG] Fix an use-after-free issue introduced in r305775.
authorHaojian Wu <hokein@google.com>
Tue, 20 Jun 2017 09:29:43 +0000 (09:29 +0000)
committerHaojian Wu <hokein@google.com>
Tue, 20 Jun 2017 09:29:43 +0000 (09:29 +0000)
commit921867e7f1d8da7a6afa4fa591ff2600c6979c44
tree7a0b64e3f67ba855ca4eb083345ae5c95f3d2b62
parent515e735353db4665c4639edf7d15555055124f39
[SelectionDAG] Fix an use-after-free issue introduced in r305775.

vector.back() will be invalidated when memory reallocation happens.

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