File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -5191,13 +5191,14 @@ void parse_internal(void)
5191
5191
func -> return_def .type = TY_int ;
5192
5192
func -> num_params = 0 ;
5193
5193
func -> va_args = 1 ;
5194
- if (!dynlink ) {
5194
+ /* In dynlink mode. __syscall won't be implemented but needs to exist
5195
+ * for parsing the built-in libc. It will be treated as external.
5196
+ *
5197
+ * Otherwise, allocate a basic block to implement __syscall in static mode.
5198
+ * */
5199
+ func -> bbs = NULL ;
5200
+ if (!dynlink )
5195
5201
func -> bbs = arena_calloc (BB_ARENA , 1 , sizeof (basic_block_t ));
5196
- } else {
5197
- /* In dynlink mode. __syscall won't be implemented but needs to exist
5198
- * for parsing the built-in libc. It will be treated as external */
5199
- func -> bbs = NULL ;
5200
- }
5201
5202
5202
5203
/* lexer initialization */
5203
5204
SOURCE -> size = 0 ;
You can’t perform that action at this time.
0 commit comments