1; RUN: opt < %s -globalopt -S | FileCheck %s
2
3@x = internal global i8* zeroinitializer
4
5define void @f() {
6; CHECK-LABEL: @f(
7
8; Check that we don't hit an assert in Constant::IsThreadDependent()
9; when storing this blockaddress into a global.
10
11  store i8* blockaddress(@g, %here), i8** @x, align 8
12  ret void
13}
14
15define void @g() {
16entry:
17  br label %here
18
19; CHECK-LABEL: @g(
20
21here:
22  ret void
23}
24