imrpove safety of alloc

This commit is contained in:
nora 2023-08-05 14:41:54 +02:00
parent 64d81b5608
commit dc9e33f339
3 changed files with 57 additions and 51 deletions

View file

@ -574,6 +574,14 @@ export class InferContext {
if (rhs.kind === "struct" && lhs.itemId === rhs.itemId) {
return;
}
break;
}
case "rawptr": {
if (rhs.kind === "rawptr") {
this.assign(lhs.inner, rhs.inner, span);
return;
}
break;
}
}