You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
396 B
24 lines
396 B
; RUN: opt < %s -globalopt -S | FileCheck %s
|
|
|
|
@x = internal global i8* zeroinitializer
|
|
|
|
define void @f() {
|
|
; CHECK-LABEL: @f(
|
|
|
|
; Check that we don't hit an assert in Constant::IsThreadDependent()
|
|
; when storing this blockaddress into a global.
|
|
|
|
store i8* blockaddress(@g, %here), i8** @x, align 8
|
|
ret void
|
|
}
|
|
|
|
define void @g() {
|
|
entry:
|
|
br label %here
|
|
|
|
; CHECK-LABEL: @g(
|
|
|
|
here:
|
|
ret void
|
|
}
|