Skip to content

Commit

Permalink
Add a loc to the auto-generated complex array op functions
Browse files Browse the repository at this point in the history
  • Loading branch information
braddr committed Mar 11, 2011
1 parent 3364dff commit 626faf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arrayop.c
Expand Up @@ -345,7 +345,7 @@ Expression *BinExp::arrayOp(Scope *sc)
*/
TypeFunction *ftype = new TypeFunction(fparams, type, 0, LINKc);
//printf("ftype: %s\n", ftype->toChars());
fd = new FuncDeclaration(0, 0, Lexer::idPool(name), STCundefined, ftype);
fd = new FuncDeclaration(loc, 0, Lexer::idPool(name), STCundefined, ftype);
fd->fbody = fbody;
fd->protection = PROTpublic;
fd->linkage = LINKc;
Expand Down

0 comments on commit 626faf7

Please sign in to comment.