Fixed problems with nested 'this'. Fixes #39 .

Fixed problem with debug info order of intrinsic calls (func.start after declare).
This commit is contained in:
Tomas Lindquist Olsen 2008-08-02 00:50:39 +02:00
parent 3c5e28d6c7
commit e31070a437
5 changed files with 42 additions and 15 deletions

View file

@ -485,14 +485,6 @@ LLValue* DtoNestedVariable(VarDeclaration* vd)
LLValue* ptr = DtoNestedContext(func);
assert(ptr && "nested var, but no context");
// if the nested var is a this pointer it's a class member and not a magic struct
// so we're done here!
// this happens since 1.033 for some reason... always correct ?
if (vd->ident == Id::This)
{
return ptr;
}
// handle a "normal" nested variable
// we must cast here to be sure. nested classes just have a void*