fix PR4423.
llvm-svn: 73938
This commit is contained in:
parent
5947ddfb55
commit
4c8da96ea9
@ -763,7 +763,8 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
|
||||
|
||||
if (CE->getOpcode() == llvm::Instruction::BitCast &&
|
||||
ActualFT->getReturnType() == CurFT->getReturnType() &&
|
||||
ActualFT->getNumParams() == CurFT->getNumParams()) {
|
||||
ActualFT->getNumParams() == CurFT->getNumParams() &&
|
||||
ActualFT->getNumParams() == Args.size()) {
|
||||
bool ArgsMatch = true;
|
||||
for (unsigned i = 0, e = ActualFT->getNumParams(); i != e; ++i)
|
||||
if (ActualFT->getParamType(i) != CurFT->getParamType(i)) {
|
||||
|
||||
@ -33,3 +33,7 @@ void f1() {}
|
||||
// RUN: grep 'define .* @f3' %t | not grep -F '...'
|
||||
struct foo { int X, Y, Z; } f3() {
|
||||
}
|
||||
|
||||
// PR4423 - This shouldn't crash in codegen
|
||||
void f4() {}
|
||||
void f5() { f4(42); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user