Mercurial > projects > ldc
diff gen/functions.cpp @ 399:0e6b4d65d3f8
Give error messages for invalid casts.
This required passing Loc information to certain functions.
Fixes nocompile/b/bug_cgcs_354_A/B.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 26 Jul 2008 17:19:16 +0200 |
parents | d632801b15f0 |
children | 8b7cee241e91 |
line wrap: on
line diff
--- a/gen/functions.cpp Sat Jul 26 15:42:05 2008 +0200 +++ b/gen/functions.cpp Sat Jul 26 17:19:16 2008 +0200 @@ -793,7 +793,7 @@ { LLValue* alloc = new llvm::AllocaInst(DtoType(argexp->type), "tmpparam", gIR->topallocapoint()); DVarValue* vv = new DVarValue(argexp->type, alloc, true); - DtoAssign(vv, arg); + DtoAssign(argexp->loc, vv, arg); arg = vv; } @@ -807,7 +807,7 @@ Logger::println("DtoVariadicArgument"); LOG_SCOPE; DVarValue vv(argexp->type, dst, true); - DtoAssign(&vv, argexp->toElem(gIR)); + DtoAssign(argexp->loc, &vv, argexp->toElem(gIR)); } //////////////////////////////////////////////////////////////////////////////////////////