Skip to content

Commit 24d4c7f

Browse files
committed
Fix C++ header regressions
1 parent 4ac20b7 commit 24d4c7f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

dmd/aggregate.h

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ class ClassDeclaration : public AggregateDeclaration
283283
#endif
284284

285285
static ClassDeclaration *create(Loc loc, Identifier *id, BaseClasses *baseclasses, Dsymbols *members, bool inObject);
286+
const char *toPrettyChars(bool QualifyTypes = false);
286287
Dsymbol *syntaxCopy(Dsymbol *s);
287288
Scope *newScope(Scope *sc);
288289
bool isBaseOf2(ClassDeclaration *cd);

dmd/objc.h

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ struct ObjcFuncDeclaration
5252
{
5353
ObjcSelector* selector;
5454
VarDeclaration* selectorParameter;
55+
bool isOptional;
5556
};
5657

5758
class Objc

gen/toir.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ class ToElemVisitor : public Visitor {
21612161
genFuncLiteral(fd, e);
21622162
LLFunction *callee = DtoCallee(fd, false);
21632163

2164-
if (e->type->ty == Tdelegate) {
2164+
if (fd->isNested()) {
21652165
LLType *dgty = DtoType(e->type);
21662166

21672167
LLValue *cval = DtoNestedContext(e->loc, fd);

0 commit comments

Comments
 (0)