aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-30 23:34:32 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-30 23:34:32 +0100
commit17ab23f1f06ed11602c883dd5fce406fd10637db (patch)
tree821059c168ebb59f853a86f77d471128c1c14138 /src/parser.cpp
parentc6aac264fa8001ff5e55e5ac6f56289ff0a755ee (diff)
Const Aggregate Literals for IR; Module path fix
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 6824d9561..136e88f33 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2919,10 +2919,7 @@ String get_fullpath_relative(gbAllocator a, String base_dir, String path) {
}
String get_fullpath_core(gbAllocator a, String path) {
- String module_dir = get_module_dir(gb_heap_allocator());
- defer (if (module_dir.len > 0) {
- gb_free(gb_heap_allocator(), module_dir.text);
- });
+ String module_dir = get_module_dir();
char core[] = "core/";
isize core_len = gb_size_of(core)-1;