comparison gen/tocall.cpp @ 1213:9430d4959ab4

Fix a bug in nested context code that occured when calling a function nested in the outermost scope with a context frame from a function using a more nested context frame.
author Frits van Bommel <fvbommel wxs.nl>
date Mon, 13 Apr 2009 12:19:18 +0200
parents 83d3b25c2213
children 00a84912c689
comparison
equal deleted inserted replaced
1212:df2227fdc860 1213:9430d4959ab4
450 { 450 {
451 #if 1 451 #if 1
452 if (Logger::enabled()) 452 if (Logger::enabled())
453 { 453 {
454 Logger::cout() << "arg: " << *arg << '\n'; 454 Logger::cout() << "arg: " << *arg << '\n';
455 Logger::cout() << "of type: " << *arg->getType() << '\n';
455 Logger::cout() << "expects: " << *callableTy->getParamType(j) << '\n'; 456 Logger::cout() << "expects: " << *callableTy->getParamType(j) << '\n';
456 } 457 }
457 #endif 458 #endif
458 arg = DtoBitCast(arg, callableTy->getParamType(j)); 459 arg = DtoBitCast(arg, callableTy->getParamType(j));
459 } 460 }