mirror of
https://github.com/frida/tinycc
synced 2024-12-25 22:46:49 +03:00
VLA code: minor fix
Don't try to call get_flags() on the mob branch, where it's not defined.
This commit is contained in:
parent
c75d0deecf
commit
70a6c4601e
@ -2226,7 +2226,6 @@ ST_FUNC void gen_vla_sp_restore(int addr) {
|
|||||||
/* Subtract from the stack pointer, and push the resulting value onto the stack */
|
/* Subtract from the stack pointer, and push the resulting value onto the stack */
|
||||||
ST_FUNC void gen_vla_alloc(CType *type, int align) {
|
ST_FUNC void gen_vla_alloc(CType *type, int align) {
|
||||||
int r;
|
int r;
|
||||||
get_flags();
|
|
||||||
#ifdef TCC_TARGET_PE
|
#ifdef TCC_TARGET_PE
|
||||||
/* alloca does more than just adjust %rsp on Windows */
|
/* alloca does more than just adjust %rsp on Windows */
|
||||||
vpush_global_sym(&func_old_type, TOK_alloca);
|
vpush_global_sym(&func_old_type, TOK_alloca);
|
||||||
|
Loading…
Reference in New Issue
Block a user