progs/fun_llvm.scala
changeset 650 3031e3379ea3
parent 649 e83afb44f276
child 653 9d7843934d30
--- a/progs/fun_llvm.scala	Tue Oct 08 21:12:52 2019 +0100
+++ b/progs/fun_llvm.scala	Wed Oct 09 21:37:17 2019 +0100
@@ -141,6 +141,11 @@
     val is2 = compile_exp(e2)
     i"%$x = $is1" ++ is2
   }
+  case KLet(x: String, e1: KExp, e2: KExp) => {
+    val is1 = compile_exp(e1)
+    val is2 = compile_exp(e2)
+    i"%$x = $is1" ++ is2
+  }
   case KIfeq(x1, x2, a1, a2) => {
     val if_br = Fresh("if_br")
     val else_br = Fresh("else_br")