Also fixes using the wrong memory type for some intrinsics when custom lowering them. llvm-svn: 321557