Fix compilation error

This commit is contained in:
kai 2014-06-23 18:02:14 +02:00
parent b7615f6a28
commit ecd59cbb77

View file

@ -949,7 +949,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
* but the errors were gagged.
* Try to reproduce those errors, and then fail.
*/
error("errors compiling function %s", fd->toPrettyChars());
error(fd->loc, "errors compiling function %s", fd->toPrettyChars());
fd->ir.defined = true;
return;
}