comparison gen/classes.cpp @ 837:331a176c1f4f

Removed error on naked, not fully complete, but I'll be doing more work on it during this Christmas, and some things do work. Fixed taking delegate of final class method. see mini/delegate3.d.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 09 Dec 2008 14:07:30 +0100
parents 3afe9f276db7
children 162a0502a6b9
comparison
equal deleted inserted replaced
836:14c3319ac1bb 837:331a176c1f4f
1258 1258
1259 LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl) 1259 LLValue* DtoVirtualFunctionPointer(DValue* inst, FuncDeclaration* fdecl)
1260 { 1260 {
1261 // sanity checks 1261 // sanity checks
1262 assert(fdecl->isVirtual()); 1262 assert(fdecl->isVirtual());
1263 assert(!fdecl->isFinal());
1263 assert(fdecl->vtblIndex > 0); // 0 is always ClassInfo/Interface* 1264 assert(fdecl->vtblIndex > 0); // 0 is always ClassInfo/Interface*
1264 assert(inst->getType()->toBasetype()->ty == Tclass); 1265 assert(inst->getType()->toBasetype()->ty == Tclass);
1265 1266
1266 // get instance 1267 // get instance
1267 LLValue* vthis = inst->getRVal(); 1268 LLValue* vthis = inst->getRVal();