Skip to content

Commit 82da0ce

Browse files
committed
LLVM: Use zero extension for unsigned ints
1 parent 3168b71 commit 82da0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libasr/codegen/asr_to_llvm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6314,7 +6314,7 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor<ASRToLLVMVisitor>
63146314
arg_kind != dest_kind )
63156315
{
63166316
if (dest_kind > arg_kind) {
6317-
tmp = builder->CreateSExt(tmp, llvm_utils->getIntType(dest_kind));
6317+
tmp = builder->CreateZExt(tmp, llvm_utils->getIntType(dest_kind));
63186318
} else {
63196319
tmp = builder->CreateTrunc(tmp, llvm_utils->getIntType(dest_kind));
63206320
}

0 commit comments

Comments
 (0)