[GlobalIsel] Fix fallback if stack protector isn't supported.
authorEli Friedman <efriedma@quicinc.com>
Fri, 13 May 2022 20:36:16 +0000 (13:36 -0700)
committerEli Friedman <efriedma@quicinc.com>
Fri, 13 May 2022 21:17:27 +0000 (14:17 -0700)
commit96c2a0c9fff24803be14bfaa579e4f230763d3cc
treef48820ebb60983a6085303cf9d4d0e21d092ca9f
parentaf845d7e437a0380f65db841f2917f3c1a95ecf5
[GlobalIsel] Fix fallback if stack protector isn't supported.

When GlobalISel fails, we need to report the error, and we need to set
the FailedISel property.  We skipped those steps if stack protector
insertion failed, which led to a very strange miscompile.

Differential Revision: https://reviews.llvm.org/D125584
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-stack-protector-windows.ll [new file with mode: 0644]