I had a problem in unrelated D99850 with this testcase. IMO unattached-global.ll is wrong (since its inception in D20147):
!4 = !DIExpression(DW_OP_plus_uconst, 4) DW_AT_location (DW_OP_plus_uconst 0x4)
That is not a valid DWARF expression for DW_TAG_variable. There should be an empty DWARF expression (or completely missing DW_AT_location).