fix warning
All checks were successful
Check / Explore-Gitea-Actions (push) Successful in 9s

This commit is contained in:
sfja 2026-03-17 16:03:42 +01:00
parent 9691fc38cb
commit 9d03272db8

View File

@ -184,7 +184,8 @@ class FnLowerer {
private lowerPlace(place: ast.Node): Inst {
// evaluate to most direct pointer
const ty = this.tys.place(place);
const _ty = this.tys.place(place);
if (place.is("IdentExpr")) {
const sym = this.syms.get(place);
if (sym.tag === "Let") {
@ -201,13 +202,7 @@ class FnLowerer {
}
if (place.is("UnaryExpr") && place.kind.op === "Deref") {
const source = this.lowerExpr(place.kind.expr);
// return this.pushInst(
// Ty.create("PtrMut", { ty }),
// "Load",
// { source },
// );
return source;
return this.lowerExpr(place.kind.expr);
}
if (place.is("IndexExpr")) {