mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Immediately exit on function type mismatch to avoid LLVM crash.
This commit is contained in:
committed by
Kai Nacke
parent
01b6d55770
commit
c400d180d2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user