• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -O1 -mtriple=x86_64-pc-win32 | FileCheck %s
2
3; Neither of these functions need .seh_ directives. We used to crash.
4
5target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
6target triple = "x86_64-pc-windows-msvc"
7
8declare i32 @__CxxFrameHandler3(...)
9
10define void @f1() uwtable nounwind personality i32 (...)* @__CxxFrameHandler3 {
11  ret void
12}
13
14; CHECK-LABEL: f1:
15; CHECK-NOT: .seh_
16
17define void @f2() uwtable {
18  ret void
19}
20
21; CHECK-LABEL: f2:
22; CHECK-NOT: .seh_
23