[cfe-commits] PFR: "Fix" arrow dereferencing for assignment

Chris Lattner clattner at apple.com
Sun Dec 2 10:52:56 PST 2007


On Dec 2, 2007, at 3:40 AM, Oliver Hunt wrote:

> Okay, this isn't something i'm sure about because i honestly cannot  
> work out what the original code was attempting to do.
>
> This bug would occur when trying to assign to a member through an  
> arrow dereference, as in:
> expression_t *create_expression() {    expression_t *expr =  
> (expression_t*)malloc(sizeof(expression_t));    expr->nChildren =  
> 0;    return expr; }

The code was actually more broken than that, I checked in a fix.   
Please let me know if it works with this change as well.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20071202/09aea651/attachment.html>


More information about the cfe-commits mailing list