diff --git a/gen/toir.cpp b/gen/toir.cpp index e9d5ba92..2b028eba 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -612,7 +612,7 @@ static void errorOnIllegalArrayOp(Expression* base, Expression* e1, Expression* (t2->ty == Tarray || t2->ty == Tsarray) ) { - error("Array operation %s not recognized", base->toChars()); + base->error("Array operation %s not recognized", base->toChars()); fatal(); } }