diff gen/llvmhelpers.cpp @ 363:4d7495038ae8 trunk

[svn r384] Some minor code cleanups.
author lindquist
date Mon, 14 Jul 2008 21:49:54 +0200
parents 926f65e39246
children bfb9d28f045a
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Mon Jul 14 21:03:15 2008 +0200
+++ b/gen/llvmhelpers.cpp	Mon Jul 14 21:49:54 2008 +0200
@@ -381,9 +381,7 @@
         }
         else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration())
         {
-            size_t idx = 2;
-            //idx += cd->ir.irStruct->interfaceVec.size();
-            v = DtoGEPi(v,0,idx,"tmp");
+            v = DtoGEPi(v,0,2,"tmp");
             v = DtoLoad(v);
         }
         else
@@ -395,11 +393,6 @@
     else if (ClassDeclaration* cd = sc->isClassDeclaration())
     {
         Logger::println("scope is class: %s", cd->toChars());
-        /*size_t idx = 2;
-        idx += cd->llvmIrStruct->interfaces.size();
-        v = DtoGEPi(v,0,idx,"tmp");
-        Logger::cout() << "gep = " << *v << '\n';
-        v = DtoLoad(v);*/
         return get_frame_ptr_impl(func, cd->toParent2(), v);
     }
     else