llvm-svn: 37919
by Anton Korobeynikov! This is a step towards closing PR786. llvm-svn: 28447
llvm-svn: 26163