trivial fix for PR20314

Make sure that the AddrInst is an Instruction.