Remove an over-aggressive assert. Functions with empty struct return
authorDan Gohman <gohman@apple.com>
Thu, 6 Aug 2009 15:07:58 +0000 (15:07 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 6 Aug 2009 15:07:58 +0000 (15:07 +0000)
commite483feded9a66b9a634f3dbdbf21eaaa65c69781
tree7d3c316cb81f6cdcb3729a1ebf19d953cb50b8b3
parent2bc8ef164c60371d8906d61ba846a38352619ca8
Remove an over-aggressive assert. Functions with empty struct return
types don't have any return values, from CodeGen's perspective.
This fixes PR4688.

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