Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/gen/tocall.cpp Fri Mar 27 21:50:32 2009 +0100 +++ b/gen/tocall.cpp Fri Mar 27 23:17:04 2009 +0100 @@ -326,7 +326,7 @@ { ctxarg = gIR->ir->CreateExtractValue(fnval->getRVal(), 0, ".ptr"); } - assert(ctxarg->getType() == argiter->get()); + ctxarg = DtoBitCast(ctxarg, argiter->get()); ++argiter; args.push_back(ctxarg); }