blockaddress.ll 396 B

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