As I understand it, RDJ has to wear shoes like that while shooting scenes with taller actors so he'll still fit in the frame. It's a fairly common problem when you've got one or two actors shorter than their co stars, but you don't want to draw attention to it.