[qfcc] Save block expression creator's address

I've already found the bug that necessitated it (and the creator was
innocent), but it will help later.
This commit is contained in:
Bill Currie 2020-03-14 12:27:23 +09:00
parent d30c895c13
commit 7cc51c9ca3
2 changed files with 2 additions and 0 deletions

View file

@ -104,6 +104,7 @@ typedef struct {
struct expr_s **tail; ///< last expression in the block, for appending
struct expr_s *result; ///< the result of this block if non-void
int is_call; ///< this block exprssion forms a function call
void *return_addr;///< who allocated this
} ex_block_t;
typedef struct {

View file

@ -561,6 +561,7 @@ new_block_expr (void)
b->type = ex_block;
b->e.block.head = 0;
b->e.block.tail = &b->e.block.head;
b->e.block.return_addr = __builtin_return_address (0);
return b;
}