mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Do not auto-deref subscripting.
This commit is contained in:
committed by
Christoffer Lerno
parent
10219eccb2
commit
8008fb2c18
@@ -301,7 +301,7 @@ static void linker_setup_macos(const char ***args_ref, LinkerType linker_type)
|
||||
if (is_pie(platform_target.reloc_model)) add_arg("-pie");
|
||||
add_arg("-platform_version");
|
||||
add_arg("macos");
|
||||
add_arg(str_printf("%d.0.0", mac_sdk->macos_deploy_target.major));
|
||||
add_arg(str_printf("%d.%d.0", mac_sdk->macos_min_deploy_target.major, mac_sdk->macos_min_deploy_target.minor));
|
||||
add_arg(str_printf("%d.%d", mac_sdk->macos_deploy_target.major, mac_sdk->macos_deploy_target.minor));
|
||||
}
|
||||
|
||||
|
||||
@@ -2278,7 +2278,6 @@ static inline bool sema_expr_analyse_subscript(SemaContext *context, Expr *expr,
|
||||
// 1. Evaluate the expression to index.
|
||||
Expr *subscripted = exprptr(expr->subscript_expr.expr);
|
||||
if (!sema_analyse_expr_lvalue_fold_const(context, subscripted)) return false;
|
||||
sema_subscript_deref_array_pointers(subscripted);
|
||||
|
||||
// 2. Evaluate the index.
|
||||
Expr *index = exprptr(expr->subscript_expr.range.start);
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define COMPILER_VERSION "0.3.120"
|
||||
#define COMPILER_VERSION "0.3.121"
|
||||
Reference in New Issue
Block a user