diff --git a/gen/nested.cpp b/gen/nested.cpp index 035606f1..8044d825 100644 --- a/gen/nested.cpp +++ b/gen/nested.cpp @@ -247,9 +247,9 @@ void DtoNestedInit(VarDeclaration* vd) } #if DMDV2 -LLValue* DtoResolveNestedContext(Loc loc, AggregateDeclaration *decl, LLValue *value) +void DtoResolveNestedContext(Loc loc, AggregateDeclaration *decl, LLValue *value) #else -LLValue* DtoResolveNestedContext(Loc loc, ClassDeclaration *decl, LLValue *value) +void DtoResolveNestedContext(Loc loc, ClassDeclaration *decl, LLValue *value) #endif { Logger::println("Resolving nested context"); diff --git a/gen/nested.h b/gen/nested.h index ea3c6746..34fff976 100644 --- a/gen/nested.h +++ b/gen/nested.h @@ -18,9 +18,9 @@ void DtoNestedInit(VarDeclaration* vd); /// Resolves the nested context for classes and structs with arbitrary nesting. #if DMDV2 -LLValue* DtoResolveNestedContext(Loc loc, AggregateDeclaration *decl, LLValue *value); +void DtoResolveNestedContext(Loc loc, AggregateDeclaration *decl, LLValue *value); #else -LLValue* DtoResolveNestedContext(Loc loc, ClassDeclaration *decl, LLValue *value); +void DtoResolveNestedContext(Loc loc, ClassDeclaration *decl, LLValue *value); #endif /// Gets the context value for a call to a nested function or creating a nested