This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][NFC] Fix a memset in MemRefUtils.h
ClosedPublic

Authored by xgupta on Jan 22 2023, 9:10 AM.

Details

Summary

found by PVS-Studio - https://pvs-studio.com/en/blog/posts/cpp/1003/, N10.
memset function expects to take int as the second actual argument,
but receives a pointer. Here, the first and the second argument of
the function are mixed up.

Diff Detail

Event Timeline

xgupta created this revision.Jan 22 2023, 9:10 AM
xgupta requested review of this revision.Jan 22 2023, 9:10 AM
ftynse accepted this revision.Jan 23 2023, 1:40 AM
This revision is now accepted and ready to land.Jan 23 2023, 1:40 AM
This revision was automatically updated to reflect the committed changes.