24 lines · plain
1; RUN: opt < %s -passes=globalopt -S | FileCheck %s2 3@x = internal global ptr zeroinitializer4 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 ptr blockaddress(@g, %here), ptr @x, align 812 ret void13}14 15define void @g() {16entry:17 br label %here18 19; CHECK-LABEL: @g(20 21here:22 ret void23}24