IFR should always be given a heading which will always be terrain safe. VFR should always be told to track. If a VFR a/c is given a heading then the a/c must be told to advise ATC if they cannot maintain VMC and also that it is their responsibility to maintain terrain clearance.