Handle null pointers in memcpy/memset
Merge branch 'master' into llvm-trunk