mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
Allow stack allocations larger than SHRT_MAX * 4 bytes
Slots are stored as `int` in Fn, so use the same type in Tmp. Rearrange the fields in Tmp slightly so that sizeof(Tmp) stays the same (at least on 64-bit systems).
This commit is contained in:
parent
82f5ba58cf
commit
905575d9e6
4
all.h
4
all.h
@ -279,11 +279,11 @@ struct Alias {
|
||||
|
||||
struct Tmp {
|
||||
char name[NString];
|
||||
uint bid; /* id of a defining block */
|
||||
Use *use;
|
||||
uint ndef, nuse;
|
||||
uint bid; /* id of a defining block */
|
||||
uint cost;
|
||||
short slot; /* -1 for unset */
|
||||
int slot; /* -1 for unset */
|
||||
short cls;
|
||||
struct {
|
||||
int r; /* register or -1 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user