Pass the diagnostic in for better error messages.

llvm-svn: 178120
1 file changed