fix(qbe): Lcx_ResolveTypeKind — map TypeExpr.kind→Type.kind, fix alloca typeKind, skip empty stores

This commit is contained in:
2026-06-02 13:02:35 +03:00
parent 8d0841b6be
commit cae53aeaef
4 changed files with 102 additions and 6 deletions
+4
View File
@@ -639,6 +639,10 @@ func QBE_EmitStmt(qbe: *QbeEmitter, node: *HirNode) {
target = QBE_LocalName(node.child1.strValue);
} else {
target = QBE_EmitExpr(qbe, node.child1);
if String_Eq(target, "") {
QBE_EmitLine(qbe, "# WARN: empty store target, skipping");
return;
}
}
let val: String = QBE_EmitExpr(qbe, node.child2);
let ty: String = QbeBackend_TypeWord(node.typeKind);