aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-03-07 15:43:20 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-03-08 14:58:53 -0700
commitc6160fa3a5c2f55871c2ab2377531c8a4e34a76a (patch)
treecbee981048b3a1e0a1c51b3b9292017967f7df07 /src/Compilation.zig
parent95fc41b2b433ccfa751c8877ec7edac3b9bffbd6 (diff)
downloadzig-c6160fa3a5c2f55871c2ab2377531c8a4e34a76a.tar.gz
zig-c6160fa3a5c2f55871c2ab2377531c8a4e34a76a.zip
LLVM: add compile unit to debug info
This commit also adds a bunch of bindings for debug info.
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index b2ac9b249c..fa2e4ca68b 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -898,7 +898,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
// We put the `Compilation` itself in the arena. Freeing the arena will free the module.
// It's initialized later after we prepare the initialization options.
const comp = try arena.create(Compilation);
- const root_name = try arena.dupe(u8, options.root_name);
+ const root_name = try arena.dupeZ(u8, options.root_name);
const ofmt = options.object_format orelse options.target.getObjectFormat();