Makes error handling more consistent by using the helpers in support. llvm-svn: 330536
llvm-svn: 239240