summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WinEH
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-09-03 22:27:27 +0000
committerReid Kleckner <rnk@google.com>2019-09-03 22:27:27 +0000
commit3fa07dee94368643cdbc38fb24d8d2734b9bf42c (patch)
tree47b305d9f92cc54ae59568aa30c4a0c358645563 /llvm/test/CodeGen/WinEH
parent49e7ee4dd58f57b67d3f1b953d2f81ae6ad75964 (diff)
downloadbcm5719-llvm-3fa07dee94368643cdbc38fb24d8d2734b9bf42c.tar.gz
bcm5719-llvm-3fa07dee94368643cdbc38fb24d8d2734b9bf42c.zip
Revert [Windows] Disable TrapUnreachable for Win64, add SEH_NoReturn
This reverts r370525 (git commit 0bb1630685fba255fa93def92603f064c2ffd203) Also reverts r370543 (git commit 185ddc08eed6542781040b8499ef7ad15c8ae9f4) The approach I took only works for functions marked `noreturn`. In general, a call that is not known to be noreturn may be followed by unreachable for other reasons. For example, there could be multiple call sites to a function that throws sometimes, and at some call sites, it is known to always throw, so it is followed by unreachable. We need to insert an `int3` in these cases to pacify the Windows unwinder. I think this probably deserves its own standalone, Win64-only fixup pass that runs after block placement. Implementing that will take some time, so let's revert to TrapUnreachable in the mean time. llvm-svn: 370829
Diffstat (limited to 'llvm/test/CodeGen/WinEH')
-rw-r--r--llvm/test/CodeGen/WinEH/wineh-noret-cleanup.ll7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/WinEH/wineh-noret-cleanup.ll b/llvm/test/CodeGen/WinEH/wineh-noret-cleanup.ll
index 7d4d833aa9b..9f7c995e5e7 100644
--- a/llvm/test/CodeGen/WinEH/wineh-noret-cleanup.ll
+++ b/llvm/test/CodeGen/WinEH/wineh-noret-cleanup.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: sed -e s/.Cxx:// %s | llc -mtriple=x86_64-pc-windows-msvc | FileCheck %s --check-prefix=CXX
; RUN: sed -e s/.Seh:// %s | llc -mtriple=x86_64-pc-windows-msvc | FileCheck %s --check-prefix=SEH
@@ -68,13 +69,13 @@ catch.body.2:
; SEH-NEXT: .long .Ltmp0@IMGREL+1
; SEH-NEXT: .long .Ltmp1@IMGREL+1
; SEH-NEXT: .long dummy_filter@IMGREL
-; SEH-NEXT: .long .LBB0_5@IMGREL
+; SEH-NEXT: .long .LBB0_2@IMGREL
; SEH-NEXT: .long .Ltmp2@IMGREL+1
; SEH-NEXT: .long .Ltmp3@IMGREL+1
-; SEH-NEXT: .long "?dtor$2@?0?test@4HA"@IMGREL
+; SEH-NEXT: .long "?dtor$5@?0?test@4HA"@IMGREL
; SEH-NEXT: .long 0
; SEH-NEXT: .long .Ltmp2@IMGREL+1
; SEH-NEXT: .long .Ltmp3@IMGREL+1
; SEH-NEXT: .long dummy_filter@IMGREL
-; SEH-NEXT: .long .LBB0_5@IMGREL
+; SEH-NEXT: .long .LBB0_2@IMGREL
; SEH-NEXT: .Llsda_end0:
OpenPOWER on IntegriCloud