[X86] Run CFIInstrInserter on Windows if Dwarf is used
authorMartin Storsjo <martin@martin.st>
Mon, 29 Apr 2019 20:25:51 +0000 (20:25 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 29 Apr 2019 20:25:51 +0000 (20:25 +0000)
commitc0d138d147883576bfa4c689c9eb35b00d1626c4
tree17aea563b5ed89b0fc6fe7275d2dc57d60a4d8c4
parent1817377f1014ccc31aa9661d431b74c7fcd18f19
[X86] Run CFIInstrInserter on Windows if Dwarf is used

This is necessary since SVN r330706, as tail merging can include
CFI instructions since then.

This fixes PR40322 and PR40012.

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

llvm-svn: 359496
llvm/lib/Target/X86/X86TargetMachine.cpp
llvm/test/CodeGen/X86/PR40322.ll [new file with mode: 0644]