Mercurial > projects > ldc
comparison gen/toir.cpp @ 422:fa91b03d9cd7
Error message for calling a function with a missing 'this' arg.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 29 Jul 2008 10:29:52 +0200 |
parents | ac1fcc138e42 |
children | c8d98ccad0cc |
comparison
equal
deleted
inserted
replaced
421:1c65b5477eaa | 422:fa91b03d9cd7 |
---|---|
884 expv = DtoCast(loc, expv, Type::tint32); | 884 expv = DtoCast(loc, expv, Type::tint32); |
885 return new DImValue(type, gIR->ir->CreateAlloca(LLType::Int8Ty, expv->getRVal(), ".alloca")); | 885 return new DImValue(type, gIR->ir->CreateAlloca(LLType::Int8Ty, expv->getRVal(), ".alloca")); |
886 } | 886 } |
887 } | 887 } |
888 | 888 |
889 return DtoCallFunction(type, fnval, arguments); | 889 return DtoCallFunction(loc, type, fnval, arguments); |
890 } | 890 } |
891 | 891 |
892 ////////////////////////////////////////////////////////////////////////////////////////// | 892 ////////////////////////////////////////////////////////////////////////////////////////// |
893 | 893 |
894 DValue* CastExp::toElem(IRState* p) | 894 DValue* CastExp::toElem(IRState* p) |