mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
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:
parent
3c5e28d6c7
commit
e31070a437
5 changed files with 42 additions and 15 deletions
|
@ -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*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue