mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
imrpove safety of alloc
This commit is contained in:
parent
64d81b5608
commit
dc9e33f339
3 changed files with 57 additions and 51 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue