mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-23 00:18:24 +00:00
deploy: a70924b81b
This commit is contained in:
parent
adfda37b08
commit
f6fb680bd7
|
@ -2513,15 +2513,15 @@
|
|||
<span class="kw">for </span>proj <span class="kw">in </span><span class="kw-2">&</span>place.projection {
|
||||
<span class="kw">match </span>proj {
|
||||
ir::PlaceElem::Deref => {
|
||||
ptr = ctx
|
||||
.builder
|
||||
.build_load(compile_basic_type(ctx, <span class="kw-2">&</span>local_ty), ptr, <span class="string">"deref"</span>)<span class="question-mark">?
|
||||
</span>.into_pointer_value();
|
||||
local_ty = <span class="kw">match </span>local_ty.kind {
|
||||
ir::TypeKind::Ptr(<span class="kw">_</span>, inner) => <span class="kw-2">*</span>inner,
|
||||
ir::TypeKind::Ref(<span class="kw">_</span>, inner) => <span class="kw-2">*</span>inner,
|
||||
<span class="kw">_ </span>=> <span class="macro">unreachable!</span>(),
|
||||
}
|
||||
};
|
||||
ptr = ctx
|
||||
.builder
|
||||
.build_load(compile_basic_type(ctx, <span class="kw-2">&</span>local_ty), ptr, <span class="string">"deref"</span>)<span class="question-mark">?
|
||||
</span>.into_pointer_value();
|
||||
}
|
||||
ir::PlaceElem::Field { .. } => <span class="macro">todo!</span>(),
|
||||
ir::PlaceElem::Index { .. } => <span class="macro">todo!</span>(),
|
||||
|
|
Loading…
Reference in a new issue