ir: Add isWeakLink field to Variables.