forked from AbleOS/holey-bytes
wrong handling of embeds
This commit is contained in:
parent
2ab6f6c914
commit
0f8a720fe8
|
@ -801,7 +801,7 @@ impl Codegen {
|
||||||
use {Expr as E, TokenKind as T};
|
use {Expr as E, TokenKind as T};
|
||||||
let value = match *expr {
|
let value = match *expr {
|
||||||
E::Mod { id, .. } => Some(Value::ty(ty::Kind::Module(id).compress())),
|
E::Mod { id, .. } => Some(Value::ty(ty::Kind::Module(id).compress())),
|
||||||
E::Embed { id, .. } => Some(Value::ty(ty::Kind::Global(id).compress())),
|
E::Embed { id, .. } => self.handle_global(id),
|
||||||
E::Struct { captured, packed, fields, pos, .. } => {
|
E::Struct { captured, packed, fields, pos, .. } => {
|
||||||
if captured.is_empty() {
|
if captured.is_empty() {
|
||||||
Some(Value::ty(
|
Some(Value::ty(
|
||||||
|
|
Loading…
Reference in a new issue