[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / Transforms / SimplifyCFG / 2011-09-05-TrivialLPad.ll
blob3a70248452fbfa7907d528ce7527663b6d2b9c5d
1 ; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
3 ; CHECK-NOT: invoke
4 ; CHECK-NOT: landingpad
6 declare void @bar()
8 define i32 @foo() personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0 {
9 entry:
10   invoke void @bar()
11           to label %return unwind label %lpad
13 return:
14   ret i32 0
16 lpad:
17   %lp = landingpad { i8*, i32 }
18           cleanup
19   resume { i8*, i32 } %lp
22 declare i32 @__gxx_personality_v0(i32, i64, i8*, i8*)