mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Some refactoring of ranges. env::AUTHORS and env::AUTHOR_EMAILS
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user