mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Immediately exit on function type mismatch to avoid LLVM crash.
This commit is contained in:
parent
01b6d55770
commit
c400d180d2
1 changed files with 1 additions and 0 deletions
|
@ -767,6 +767,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
|
|||
}
|
||||
} else if (func->getFunctionType() != functype) {
|
||||
error(fdecl->loc, "Function type does not match previously declared function with the same mangled name: %s", fdecl->mangle());
|
||||
fatal();
|
||||
}
|
||||
|
||||
func->setCallingConv(gABI->callingConv(link));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue