mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Conditionally set constructor, if it has any instructions.
This commit is contained in:
parent
21f549896a
commit
40e53d46ea
@ -1400,7 +1400,8 @@ TypedRegister ICodeGenerator::genStmt(StmtNode *p, LabelSet *currentLabelSet)
|
||||
s = s->next;
|
||||
}
|
||||
// FIXME: what about static member initialization? that's what mcg should be collecting.
|
||||
thisClass->setConstructor(ccg.complete());
|
||||
if (ccg.get_iCode()->size())
|
||||
thisClass->setConstructor(ccg.complete());
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1400,7 +1400,8 @@ TypedRegister ICodeGenerator::genStmt(StmtNode *p, LabelSet *currentLabelSet)
|
||||
s = s->next;
|
||||
}
|
||||
// FIXME: what about static member initialization? that's what mcg should be collecting.
|
||||
thisClass->setConstructor(ccg.complete());
|
||||
if (ccg.get_iCode()->size())
|
||||
thisClass->setConstructor(ccg.complete());
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user