File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import decaf.driver.{Config, Phase}
77import decaf .frontend .tree .TreeNode .{ArithOp , EqOrCmpOp }
88import decaf .frontend .tree .TypedTree ._
99import decaf .frontend .tree .{TreeNode , TypedTree }
10+ import decaf .lowlevel .StringUtils
1011import org .objectweb .asm .{ClassWriter , Label , MethodVisitor , Opcodes }
1112
1213import scala .collection .mutable
@@ -178,7 +179,7 @@ class JVMGen extends Phase[Tree, List[JVMClass]]("jvm") with Util {
178179 def emitExpr (expr : Expr )(implicit mv : MethodVisitor , ctx : Context ): Unit = expr match {
179180 case IntLit (v) => mv.visitLdcInsn(v)
180181 case BoolLit (v) => mv.visitLdcInsn(v)
181- case StringLit (v ) => mv.visitLdcInsn(v )
182+ case StringLit (str ) => mv.visitLdcInsn(StringUtils .unquote(str) )
182183 case NullLit () => mv.visitInsn(Opcodes .ACONST_NULL )
183184
184185 // Prebuilt functions
You can’t perform that action at this time.
0 commit comments