This commit is contained in:
parent
9691fc38cb
commit
9d03272db8
@ -184,7 +184,8 @@ class FnLowerer {
|
|||||||
private lowerPlace(place: ast.Node): Inst {
|
private lowerPlace(place: ast.Node): Inst {
|
||||||
// evaluate to most direct pointer
|
// evaluate to most direct pointer
|
||||||
|
|
||||||
const ty = this.tys.place(place);
|
const _ty = this.tys.place(place);
|
||||||
|
|
||||||
if (place.is("IdentExpr")) {
|
if (place.is("IdentExpr")) {
|
||||||
const sym = this.syms.get(place);
|
const sym = this.syms.get(place);
|
||||||
if (sym.tag === "Let") {
|
if (sym.tag === "Let") {
|
||||||
@ -201,13 +202,7 @@ class FnLowerer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (place.is("UnaryExpr") && place.kind.op === "Deref") {
|
if (place.is("UnaryExpr") && place.kind.op === "Deref") {
|
||||||
const source = this.lowerExpr(place.kind.expr);
|
return this.lowerExpr(place.kind.expr);
|
||||||
// return this.pushInst(
|
|
||||||
// Ty.create("PtrMut", { ty }),
|
|
||||||
// "Load",
|
|
||||||
// { source },
|
|
||||||
// );
|
|
||||||
return source;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (place.is("IndexExpr")) {
|
if (place.is("IndexExpr")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user