diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2020-02-10 23:08:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 23:08:33 -0500 |
| commit | e624c862894ec50998aafb3026d4ed45208acd6d (patch) | |
| tree | a01d54c8d5ba3178eaed1fa8d0ef9c081d95d9f2 /src/target.cpp | |
| parent | 26183660558c43133d862912c602e316f43698c7 (diff) | |
| parent | edb210905dcbe666fa5222bceacd2e5bdb16bb89 (diff) | |
| download | zig-e624c862894ec50998aafb3026d4ed45208acd6d.tar.gz zig-e624c862894ec50998aafb3026d4ed45208acd6d.zip | |
Merge pull request #4389 from mikdusan/stage1-mem
stage1: memory/report overhaul
Diffstat (limited to 'src/target.cpp')
| -rw-r--r-- | src/target.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.cpp b/src/target.cpp index 53d2e598be..b8979d0214 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -520,7 +520,7 @@ void get_native_target(ZigTarget *target) { target->abi = target_default_abi(target->arch, target->os); } if (target_is_glibc(target)) { - target->glibc_version = allocate<ZigGLibCVersion>(1); + target->glibc_version = heap::c_allocator.create<ZigGLibCVersion>(); target_init_default_glibc_version(target); #ifdef ZIG_OS_LINUX Error err; |
