Some refactoring of ranges. env::AUTHORS and env::AUTHOR_EMAILS

This commit is contained in:
Christoffer Lerno
2025-07-16 12:23:24 +02:00
parent 078ce38c57
commit 379d16abe7
16 changed files with 86 additions and 15 deletions

View File

@@ -2611,6 +2611,8 @@ static void llvm_emit_slice_values(GenContext *c, Expr *slice, BEValue *parent_r
BEValue start_index;
switch (range.range_type)
{
case RANGE_SINGLE_ELEMENT:
UNREACHABLE
case RANGE_DYNAMIC:
case RANGE_CONST_LEN:
case RANGE_CONST_END:
@@ -2680,6 +2682,8 @@ static void llvm_emit_slice_values(GenContext *c, Expr *slice, BEValue *parent_r
// Get the index.
switch (range.range_type)
{
case RANGE_SINGLE_ELEMENT:
UNREACHABLE
case RANGE_DYNAMIC:
llvm_emit_exprid(c, &end_index, range.end);
llvm_value_rvalue(c, &end_index);