[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)
commitae3168da3f9130365f1372b6c23582adbf72aa2c
treef64189f7c32e8664da908599abc33d8fb951f784
parent962364c605b5122c08bd247832a9fc0ad2096a60
[InlineSpiller] Don't call TargetInstrInfo::foldMemoryOperand with an empty list.

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

llvm-svn: 289001
llvm/lib/CodeGen/InlineSpiller.cpp
llvm/test/CodeGen/X86/implicit-use-spill.mir [new file with mode: 0644]