comparison gen/tocall.cpp @ 1149:5ebe8224988b

Fixed problems introduced by previous commits that prevented Tango from compiling.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 27 Mar 2009 23:17:04 +0100
parents 4c20fcc4252b
children a668f4051368
comparison
equal deleted inserted replaced
1148:3d1b16dabd25 1149:5ebe8224988b
324 } 324 }
325 else 325 else
326 { 326 {
327 ctxarg = gIR->ir->CreateExtractValue(fnval->getRVal(), 0, ".ptr"); 327 ctxarg = gIR->ir->CreateExtractValue(fnval->getRVal(), 0, ".ptr");
328 } 328 }
329 assert(ctxarg->getType() == argiter->get()); 329 ctxarg = DtoBitCast(ctxarg, argiter->get());
330 ++argiter; 330 ++argiter;
331 args.push_back(ctxarg); 331 args.push_back(ctxarg);
332 } 332 }
333 // ... or a nested function context arg 333 // ... or a nested function context arg
334 else if (nestedcall) 334 else if (nestedcall)