Never make functions without body available_externally.

This commit is contained in:
David Nadlinger
2013-06-07 19:27:52 +02:00
parent 292caa1438
commit 4d3f9333c6

View File

@@ -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;