| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This is fine, but after merging let's add tests for all unsigned kinds as well as checking that the value is present in the variable correctly.
What exactly was the problem --- that this is using global variables?
Sorry, something went wrong.
|
Please see #2170 (comment). I think the else if condition added in this PR would never be executed since the first if in the visit_Variable() would be executed for Integers as well as UnsingedIntegers. Thus, it seems the else if condition is more like a dead code. lpython/src/libasr/codegen/asr_to_llvm.cpp Lines 2356 to 2378 in ea9715b |
Sorry, something went wrong.
Yes, I tested different unsigned kinds in https://github.com/lcompilers/lpython/pull/2164/files#diff-b6a08444f0697e1ea781c919bcdf3b29eba7b542bddef56ce0125f3c2997c973. |
Sorry, something went wrong.
| x : i32 | ||
|
|
||
| for i in range(i32(u)): | ||
| x = i * 2 |
There was a problem hiding this comment.
If in case we update the changes in this PR, I suggest we add an assert in this test case (and also possibly a print statement before the assert).
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #2170