mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
08c2862540
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138908 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
460 B
LLVM
20 lines
460 B
LLVM
; RUN: opt < %s -adce -S | grep null
|
|
|
|
declare i32 @strlen(i8*) readnone
|
|
|
|
define i32 @test() {
|
|
; invoke of pure function should not be deleted!
|
|
invoke i32 @strlen( i8* null ) readnone
|
|
to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
|
|
|
|
Cont: ; preds = %0
|
|
ret i32 0
|
|
|
|
Other: ; preds = %0
|
|
%exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
|
|
cleanup
|
|
ret i32 1
|
|
}
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|