mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 19:33:13 +01:00
Never make functions without body available_externally.
This commit is contained in:
@@ -1502,6 +1502,11 @@ bool mustDefineSymbol(Dsymbol* s)
|
||||
if (fd->semanticRun < PASSsemantic3)
|
||||
return false;
|
||||
|
||||
// If a function has no body, we cannot possibly emit it (and so it
|
||||
// cannot be available_externally either).
|
||||
if (!fd->fbody)
|
||||
return false;
|
||||
|
||||
if (fd->isArrayOp == 1)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user