From 47f06be36943f808aa9798c19172363afe6ae35c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 19 Nov 2019 20:29:08 -0500 Subject: string literals are now null terminated this also deletes C string literals from the language, and then makes the std lib changes and compiler changes necessary to get the behavior tests and std lib tests passing again. --- src-self-hosted/compilation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-self-hosted/compilation.zig') diff --git a/src-self-hosted/compilation.zig b/src-self-hosted/compilation.zig index 1e71a5e561..24c57f98ba 100644 --- a/src-self-hosted/compilation.zig +++ b/src-self-hosted/compilation.zig @@ -511,8 +511,8 @@ pub const Compilation = struct { comp.target_machine = llvm.CreateTargetMachine( comp.llvm_target, comp.llvm_triple.ptr(), - target_specific_cpu_args orelse c"", - target_specific_cpu_features orelse c"", + target_specific_cpu_args orelse "", + target_specific_cpu_features orelse "", opt_level, reloc_mode, llvm.CodeModelDefault, -- cgit v1.2.3