aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-09-13 11:29:46 +0100
committergingerBill <bill@gingerbill.org>2021-09-13 11:29:46 +0100
commitbe68bf9f26122b764a43cf61369ca54c203d1df3 (patch)
tree082246e9b7498cff898208e94afaf31e236888e8 /src/llvm_backend_expr.cpp
parent15c309b0b84c2ae36feea4220f0ccef28587db63 (diff)
Only store `field_index` remove `field_src_index` (for the time being)
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index efd0eaf40..a34e98f2b 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -3259,7 +3259,7 @@ lbAddr lb_build_addr(lbProcedure *p, Ast *expr) {
TypeAndValue tav = type_and_value_of_expr(elem);
} else {
TypeAndValue tav = type_and_value_of_expr(elem);
- Selection sel = lookup_field_from_index(bt, st->fields[field_index]->Variable.field_src_index);
+ Selection sel = lookup_field_from_index(bt, st->fields[field_index]->Variable.field_index);
index = sel.index[0];
}