fix: metadata codegen for LLVM

This commit is contained in:
Siddharth Bhat 2023-01-09 11:33:28 +00:00 committed by Sebastian Ullrich
parent 67a5846742
commit ae4f2de951

View file

@ -1079,10 +1079,7 @@ partial def emitBlock (builder : LLVM.Builder llvmctx) (b : FnBody) : M llvmctx
| FnBody.set x i y b => emitSet builder x i y; emitBlock builder b
| FnBody.uset x i y b => emitUSet builder x i y; emitBlock builder b
| FnBody.sset x i o y t b => emitSSet builder x i o y t; emitBlock builder b
| FnBody.mdata _ _b =>
-- TODO(bollu) : implement `mdata`.
-- NOTE(bollu) : It is disturbing that we pass the Lean CI without this.
throw "Unimplemented metadata."
| FnBody.mdata _ b => emitBlock builder b
| FnBody.ret x => do
let (_xty, xv) ← emitArgVal builder x "ret_val"
let _ ← LLVM.buildRet builder xv