diff options
| author | Ian Lilley <ianlilleyt@gmail.com> | 2022-08-15 08:08:49 -0400 |
|---|---|---|
| committer | Ian Lilley <ianlilleyt@gmail.com> | 2022-08-15 08:08:49 -0400 |
| commit | f5431a046decd81ddb6eed7165368a44913eaca1 (patch) | |
| tree | c666161ef51a182ba38f6464d89740c94f28d4e0 /src/llvm_backend_stmt.cpp | |
| parent | 595efba747f791634f3dee67a7cbf466f86af988 (diff) | |
using correct type for val1
Diffstat (limited to 'src/llvm_backend_stmt.cpp')
| -rw-r--r-- | src/llvm_backend_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_stmt.cpp b/src/llvm_backend_stmt.cpp index 2aa9ba802..e55fae3a7 100644 --- a/src/llvm_backend_stmt.cpp +++ b/src/llvm_backend_stmt.cpp @@ -481,7 +481,7 @@ void lb_build_range_interval(lbProcedure *p, AstBinaryExpr *node, lbAddr index; if (val1_type != nullptr) { Entity *e = entity_of_node(rs->vals[1]); - index = lb_add_local(p, t_int, e, false); + index = lb_add_local(p, val1_type, e, false); } else { index = lb_add_local_generated(p, t_int, false); } |