OSDN Git Service

[MachineOutliner] Exit getOutliningCandidateInfo when we erase all candidates
authorJessica Paquette <jpaquette@apple.com>
Fri, 27 Jul 2018 18:21:57 +0000 (18:21 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 27 Jul 2018 18:21:57 +0000 (18:21 +0000)
commit4ec15997d0ad8c0a0387de7b54b91bf846603f6d
tree47826640131906d7e63387ba03cc9c3ab8b71a60
parentdd4e083abf3c8f44c5d1df2ef2837079890d3bee
[MachineOutliner] Exit getOutliningCandidateInfo when we erase all candidates

There was a missing check for if a candidate list was entirely deleted. This
adds that check.

This fixes an asan failure caused by running test/CodeGen/AArch64/addsub_ext.ll
with the MachineOutliner enabled.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338148 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineOutliner.h
lib/CodeGen/MachineOutliner.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp