Another fix for nested context in structs.

This commit is contained in:
Alexey Prokhin
2010-11-05 11:55:23 +03:00
parent 45606689c5
commit 59d1ec5e0b
3 changed files with 7 additions and 3 deletions

View File

@@ -1202,7 +1202,11 @@ DValue* ThisExp::toElem(IRState* p)
LLValue* v;
if (vd->toParent2() != p->func()->decl) {
Logger::println("nested this exp");
#if STRUCTTHISREF
return DtoNestedVariable(loc, type, vd, type->ty == Tstruct);
#else
return DtoNestedVariable(loc, type, vd);
#endif
}
else {
Logger::println("normal this exp");