Commit 1d2c3af906

Martin Wickham <spexguy070@gmail.com>
2021-10-02 03:30:02
Remove address of pointer
1 parent 272bad3
Changed files (1)
src/Sema.zig
@@ -2601,7 +2601,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
 
     // we check this here to avoid undefined symbols
     if (!@import("build_options").have_llvm)
-        return sema.fail(&parent_block, src, "cannot do C import on Zig compiler not built with LLVM-extension", .{});
+        return sema.fail(parent_block, src, "cannot do C import on Zig compiler not built with LLVM-extension", .{});
 
     var c_import_buf = std.ArrayList(u8).init(sema.gpa);
     defer c_import_buf.deinit();