diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-22 16:14:02 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-22 16:14:02 +0100 |
| commit | 6cbb6bef0b817ba24ccbbf68d6192567bdc246ad (patch) | |
| tree | 05b0a616718faf98bb444121ba8d107694dc0624 /src/check_expr.cpp | |
| parent | 8744c60563c4a4ae1a08cbdc2ed4db3755416c0c (diff) | |
Wrap hashing functions
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 317822b84..c8366422f 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -1321,6 +1321,10 @@ Type *check_get_results(Checker *c, Scope *scope, AstNode *_results) { Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) { Type *new_type = original_type; + if (build_context.ODIN_ARCH == "x86") { + return new_type; + } + if (build_context.ODIN_OS == "windows") { // NOTE(bill): Changing the passing parameter value type is to match C's ABI // IMPORTANT TODO(bill): This only matches the ABI on MSVC at the moment @@ -3491,7 +3495,7 @@ Entity *check_selector(Checker *c, Operand *operand, AstNode *node, Type *type_h } // NOTE(bill): Check to see if it's imported - if (map_get(&import_scope->implicit, hash_pointer(procs[i]))) { + if (map_get(&import_scope->implicit, hash_entity(procs[i]))) { gb_swap(Entity *, procs[i], procs[overload_count-1]); overload_count--; i--; // NOTE(bill): Counteract the post event |