This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Fixing case coverage warning
ClosedPublic

Authored by wrengr on Sep 29 2022, 5:24 PM.

Details

Summary

Followup to D133835 for fixing the warning on LLVM's Windows buildbot

Diff Detail

Event Timeline

wrengr created this revision.Sep 29 2022, 5:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 5:24 PM
wrengr requested review of this revision.Sep 29 2022, 5:24 PM
Peiming accepted this revision.Sep 29 2022, 5:26 PM
This revision is now accepted and ready to land.Sep 29 2022, 5:26 PM
aartbik accepted this revision.Sep 29 2022, 5:26 PM
This revision was automatically updated to reflect the committed changes.

It looks like the File.cpp fix was reverted due to producing a different warning, reintroducing the MSVC one here: https://github.com/llvm/llvm-project/commit/e898be2f6edbb886af2f6b23e2f5db5210535620.

https://lab.llvm.org/buildbot/#/builders/13/builds/26533

C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\lib\ExecutionEngine\SparseTensor\File.cpp(111) : warning C4715: 'mlir::sparse_tensor::SparseTensorFile::canReadAs': not all control paths return a value