aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-03 11:38:02 +0100
committergingerBill <bill@gingerbill.org>2018-06-03 11:38:02 +0100
commit9bd7f023b204974264fc99ee268fd9e8a5df9570 (patch)
tree63da682a7b222aabf1fb2b7fbe1a11fe838508cf /src/check_type.cpp
parent398109ac841cb8c405b54da529837800ed8cddd1 (diff)
Split up `init_preload` into specific parts
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 387369f7d..8eef0590d 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -844,7 +844,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, AstNode *_params, bool
if (type_expr == nullptr) {
if (default_value->kind == AstNode_BasicDirective &&
default_value->BasicDirective.name == "caller_location") {
- init_preload(ctx->checker);
+ init_core_source_code_location(ctx->checker);
default_is_location = true;
type = t_source_code_location;
} else {
@@ -942,7 +942,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, AstNode *_params, bool
Operand o = {};
if (default_value->kind == AstNode_BasicDirective &&
default_value->BasicDirective.name == "caller_location") {
- init_preload(ctx->checker);
+ init_core_source_code_location(ctx->checker);
default_is_location = true;
o.type = t_source_code_location;
o.mode = Addressing_Value;
@@ -1715,7 +1715,7 @@ void check_map_type(CheckerContext *ctx, Type *type, AstNode *node) {
}
- init_preload(ctx->checker);
+ init_core_map_type(ctx->checker);
init_map_internal_types(type);
// error(node, "'map' types are not yet implemented");