Conditionally set constructor, if it has any instructions.
git-svn-id: svn://10.0.0.236/trunk@73196 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user