AArch64: fall back to DWARF instead of crashing on weird .cfi directives
authorTim Northover <tnorthover@apple.com>
Wed, 18 May 2022 10:40:46 +0000 (11:40 +0100)
committerTim Northover <tnorthover@apple.com>
Wed, 18 May 2022 10:42:42 +0000 (11:42 +0100)
commit04e5b7fd17748bd10ae0f30cb571103e5da0dde5
tree795dccdd01473bf86dd42cba5298cacb917d9989
parent8e648f195c3d57e573fdd8023edcfd80e0516c61
AArch64: fall back to DWARF instead of crashing on weird .cfi directives

CodeGen will only produce fixed formwat prologues, but hand-written assembly
can have .cfi directives in any combination they want. This should cause a
fallback to DWARF rather than an assertion failure (or an incorrect compact
unwind if assertions are disabled).
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
llvm/test/MC/AArch64/arm64-compact-unwind-fallback.s