Re-apply r175688, with the changes suggested by Jakob in PR15320.

llvm-svn: 175809
1 file changed