8e12397d70
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
12 lines
245 B
LLVM
12 lines
245 B
LLVM
; RUN: opt -instcombine -S < %s | FileCheck %s
|
|
|
|
declare void @foo(i32)
|
|
|
|
define void @g() {
|
|
; CHECK-LABEL: @g(
|
|
entry:
|
|
; CHECK: call void @foo(i32 0) [ "deopt"() ]
|
|
call void bitcast (void (i32)* @foo to void ()*) () [ "deopt"() ]
|
|
ret void
|
|
}
|