Closed
Description
/Users/ondrej/repos/lpython/src/libasr/codegen/llvm_utils.cpp:1487:21: warning: variable 'pred' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
default: {
^~~~~~~
/Users/ondrej/repos/lpython/src/libasr/codegen/llvm_utils.cpp:1491:43: note: uninitialized use occurs here
return builder->CreateCmp(pred, left, right);
^~~~
/Users/ondrej/repos/lpython/src/libasr/codegen/llvm_utils.cpp:1465:9: note: variable 'pred' is declared here
llvm::CmpInst::Predicate pred;
^
I thought we test for this at the CI. Maybe we only do it for LFortran.
Metadata
Metadata
Assignees
Labels
No labels