[CodeGenObjC] Fix a nullptr dyn_cast
authorErik Pilkington <erik.pilkington@gmail.com>
Mon, 25 Feb 2019 21:35:14 +0000 (21:35 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Mon, 25 Feb 2019 21:35:14 +0000 (21:35 +0000)
commit55e703a5504c9a3ac27183191c440d89ee1650e3
tree991bab3fb5647aea746dd807616c0366e5a4b677
parentf4bfe4cd178e09d3ceafb613fb61a70ba845cab8
[CodeGenObjC] Fix a nullptr dyn_cast

ObjCMessageExpr::getInstanceReceiver returns nullptr if the receiver
is 'super'. Make this check more strict, since we don't care about
messages to super here.

rdar://48247290

llvm-svn: 354826
clang/lib/CodeGen/CGObjC.cpp
clang/test/CodeGenObjC/objc-alloc-init.m