mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[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:
parent
d30c895c13
commit
7cc51c9ca3
2 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue