Fix an abort on a store of an empty struct member. getValue returns
authorDan Gohman <gohman@apple.com>
Tue, 8 Sep 2009 01:44:02 +0000 (01:44 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 8 Sep 2009 01:44:02 +0000 (01:44 +0000)
commited48caf5e703c8ee088a8ffa7fb77ebd1b25e97b
treef1cedae0fd81a566765a26bb3f008f2ad8e76496
parent49072473bac39f888be9e3814de48215daacea46
Fix an abort on a store of an empty struct member. getValue returns
null in the case of an empty struct, so don't try to call getNumValues
on it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
test/CodeGen/X86/store-empty-member.ll [new file with mode: 0644]