self hosted compiler: remove await async pattern

This commit is contained in:
Vexu
2019-11-06 19:38:59 +02:00
parent b06e5b8c68
commit cb20093614
9 changed files with 151 additions and 192 deletions

View File

@@ -17,7 +17,7 @@ pub async fn renderToLlvm(comp: *Compilation, fn_val: *Value.Fn, code: *ir.Code)
defer fn_val.base.deref(comp);
defer code.destroy(comp.gpa());
var output_path = try await (async comp.createRandomOutputPath(comp.target.objFileExt()) catch unreachable);
var output_path = try comp.createRandomOutputPath(comp.target.objFileExt());
errdefer output_path.deinit();
const llvm_handle = try comp.zig_compiler.getAnyLlvmContext();