diff gen/llvmhelpers.cpp @ 452:30ef3c7bddca

Fixed problems with nested 'this'. Fixes #39 . Fixed problem with debug info order of intrinsic calls (func.start after declare).
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sat, 02 Aug 2008 00:50:39 +0200
parents cc40db549aea
children 60332cd85308
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Fri Aug 01 21:56:13 2008 +0200
+++ b/gen/llvmhelpers.cpp	Sat Aug 02 00:50:39 2008 +0200
@@ -485,14 +485,6 @@
     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*