llvm.org GIT mirror llvm / release_90 test / CodeGen / X86 / eh-nolandingpads.ll
release_90

Tree @release_90 (Download .tar.gz)

eh-nolandingpads.ll @release_90raw · history · blame

; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
; Test that we emit functions with explicitly specified personality,
; even if no landing pads are left.

declare i32 @__my_personality_v0(...)
declare void @might_throw()

define i32 @foo() personality i32 (...)* @__my_personality_v0 {
; CHECK: .cfi_personality 3, __my_personality_v0
    call void @might_throw()
    ret i32 0
}