Fix minor bugs and uses of undef which break when pointer related optimization passes are run. llvm-svn: 269944