mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
Fix issue #2376
Stupidly warning about multiple definitions if a following one is in fact just a forward-declaration.
This commit is contained in:
parent
ca90dbb47e
commit
782190f8f4
1 changed files with 4 additions and 4 deletions
|
@ -921,6 +921,10 @@ void DtoDefineFunction(FuncDeclaration *fd, bool linkageAvailableExternally) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!fd->fbody) {
|
||||
return;
|
||||
}
|
||||
|
||||
IrFunction *const irFunc = getIrFunc(fd);
|
||||
llvm::Function *const func = irFunc->getLLVMFunc();
|
||||
|
||||
|
@ -932,10 +936,6 @@ void DtoDefineFunction(FuncDeclaration *fd, bool linkageAvailableExternally) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!fd->fbody) {
|
||||
return;
|
||||
}
|
||||
|
||||
// debug info
|
||||
irFunc->diSubprogram = gIR->DBuilder.EmitSubProgram(fd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue