mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
4fdc3d2e09
Summary: Otherwise, we emit directives for CFI without any actual CFI opcodes to go with them, which causes tools to malfunction. The technique is similar to what the x86 backend already does. Fixes https://bugs.llvm.org/show_bug.cgi?id=40876 Patch by: froydnj (Nathan Froyd) Reviewers: mstorsjo, eli.friedman, rnk, mgrang, ssijaric Reviewed By: rnk Subscribers: javed.absar, kristof.beyls, llvm-commits, dmajor Tags: #llvm Differential Revision: https://reviews.llvm.org/D61960 llvm-svn: 360816
14 lines
325 B
LLVM
14 lines
325 B
LLVM
; RUN: llc < %s -mtriple=aarch64-pc-windows-msvc | FileCheck %s
|
|
|
|
define dso_local void @"?f@@YAXXZ"() nounwind sspstrong uwtable {
|
|
; CHECK-LABEL: f@@YAXXZ
|
|
; CHECK-NOT: .seh_proc
|
|
; CHECK-NOT: .seh_handlerdata
|
|
; CHECK-NOT: .seh_endproc
|
|
entry:
|
|
call void @llvm.trap()
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.trap() noreturn nounwind
|