LLVM: Support Unsigned Int in visit_Variable#2171
Conversation
|
Please see #2170 (comment). I think the lpython/src/libasr/codegen/asr_to_llvm.cpp Lines 2356 to 2378 in ea9715b |
Yes, I tested different unsigned kinds in https://github.com/lcompilers/lpython/pull/2164/files#diff-b6a08444f0697e1ea781c919bcdf3b29eba7b542bddef56ce0125f3c2997c973. |
| 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).
Fixes #2170