simplify slot logic in alias analysis
The previous code was buggy. It would put a stack pointer on the heap when handling "add $foo, 42". The new code is more straightforward and hopefully more correct. Only temporaries with a "stack" alias class will have a slot pointer.
This commit is contained in:
parent
8241685fb9
commit
19801b9253
2 changed files with 13 additions and 9 deletions
1
all.h
1
all.h
|
@ -272,6 +272,7 @@ struct Alias {
|
|||
AEsc = 3, /* stack escaping */
|
||||
ASym = 4,
|
||||
AUnk = 6,
|
||||
#define astack(t) ((t) & 1)
|
||||
} type;
|
||||
Ref base;
|
||||
char label[NString];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue