浏览代码

Debug info patch - Fix #967 (#979)

* fix debug info bug

Signed-off-by: thanhtoantnt <thanhtoantnt@gmail.com>
Nguyen Thanh Toan 3 年之前
父节点
当前提交
d8dbcab61f
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/codegen/expression.rs
  2. 1 0
      src/emit/mod.rs

+ 1 - 1
src/codegen/expression.rs

@@ -1751,7 +1751,7 @@ fn checking_trunc(
 ) -> Expression {
     let bits = match ty {
         Type::Uint(bits) => *bits as u32,
-        Type::Value => (ns.value_length as u32 * 8),
+        Type::Value => ns.value_length as u32 * 8,
         _ => unreachable!(),
     };
 

+ 1 - 0
src/emit/mod.rs

@@ -4605,6 +4605,7 @@ pub trait TargetRuntime<'a> {
                     }
                 }
                 bin.builder.unset_current_debug_location();
+                dibuilder.finalize();
             }
         }
     }