mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Fix assertions-enabled build.
needsCodegen was moved to TemplateInstance in 2.066.1.
This commit is contained in:
parent
28f4bce28c
commit
73735dd98c
1 changed files with 2 additions and 4 deletions
|
@ -973,10 +973,8 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
if (fd->semanticRun != PASSsemantic3done || fd->ident == Id::empty)
|
||||
{
|
||||
// We cannot ever generate code for this function. DMD would just filter
|
||||
// it out by checking needsCodegen(), but we want to emit functions even
|
||||
// if we do not need as available_exernally for inlining purposes.
|
||||
assert(!fd->needsCodegen());
|
||||
|
||||
// it out, but we want to emit functions even if we do not need to as
|
||||
// available_exernally for inlining purposes.
|
||||
IF_LOG Logger::println("No code generation for incomplete function '%s'",
|
||||
fd->toPrettyChars());
|
||||
fd->ir.setDefined();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue