OSDN Git Service

[InlineSpiller] Don't call TargetInstrInfo::foldMemoryOperand with an empty list.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 8 Dec 2016 00:06:51 +0000 (00:06 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 8 Dec 2016 00:06:51 +0000 (00:06 +0000)
commitaff0caeac1ee7cc8017b4cd2f15908a98cb6975a
tree94e9cf8ad60f024a2bd876c8bf929657370951be
parent8302e1c94679294477d0ef34a9404c9158ffc33d
[InlineSpiller] Don't call TargetInstrInfo::foldMemoryOperand with an empty list.

Since r287792 if we try to do that we will hit an assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289001 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp
test/CodeGen/X86/implicit-use-spill.mir [new file with mode: 0644]