mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-23 14:55:19 +00:00
Enforce dynamic map calls for the time being
This commit is contained in:
@@ -1253,6 +1253,9 @@ gb_internal void init_build_context(TargetMetrics *cross_target) {
|
||||
|
||||
bc->optimization_level = gb_clamp(bc->optimization_level, 0, 3);
|
||||
|
||||
// ENFORCE DYNAMIC MAP CALLS
|
||||
bc->dynamic_map_calls = true;
|
||||
|
||||
bc->ODIN_VALGRIND_SUPPORT = false;
|
||||
if (build_context.metrics.os != TargetOs_windows) {
|
||||
switch (bc->metrics.arch) {
|
||||
|
||||
@@ -1035,8 +1035,8 @@ gb_internal lbValue lb_emit_call(lbProcedure *p, lbValue value, Array<lbValue> c
|
||||
if (is_odin_cc) {
|
||||
if (are_types_identical(original_type, t_source_code_location)) {
|
||||
ptr = lb_address_from_load_or_generate_local(p, x);
|
||||
} else {
|
||||
ptr = lb_address_from_load_if_readonly_parameter(p, x);
|
||||
// } else {
|
||||
// ptr = lb_address_from_load_if_readonly_parameter(p, x);
|
||||
}
|
||||
}
|
||||
if (ptr.value == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user