Skip to content

Commit 9b2a80d

Browse files
committed
[little merge-fixes wrt. now free-standing functions]
1 parent 1b81435 commit 9b2a80d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ir/irclass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ LLConstant *IrClass::getVtblInit() {
216216
FuncDeclaration *fd = dsym->isFuncDeclaration();
217217
assert(fd && "vtbl entry not a function");
218218

219-
if (cd->isAbstract() || (fd->isAbstract() && !fd->fbody)) {
219+
if (isAbstract(cd) || (fd->isAbstract() && !fd->fbody)) {
220220
c = getNullPtr();
221221
} else {
222222
// If inferring return type and semantic3 has not been run, do it now.
@@ -321,14 +321,14 @@ unsigned buildClassinfoFlags(ClassDeclaration *cd) {
321321
break;
322322
}
323323
}
324-
if (cd->isAbstract()) {
324+
if (isAbstract(cd)) {
325325
flags |= ClassFlags::isAbstract;
326326
}
327327
for (ClassDeclaration *pc = cd; pc; pc = pc->baseClass) {
328328
if (pc->members) {
329329
for (Dsymbol *sm : *pc->members) {
330330
// printf("sm = %s %s\n", sm->kind(), sm->toChars());
331-
if (sm->hasPointers()) {
331+
if (hasPointers(sm)) {
332332
return flags;
333333
}
334334
}

0 commit comments

Comments
 (0)