This is an archive of the discontinued LLVM Phabricator instance.

[Coverity] Fix uninitialized scalar members in TableGen
ClosedPublic

Authored by akshaykhadse on Apr 20 2023, 9:47 AM.

Details

Summary

This change fixes static code analysis warnings

Diff Detail

Event Timeline

akshaykhadse created this revision.Apr 20 2023, 9:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 9:47 AM
akshaykhadse requested review of this revision.Apr 20 2023, 9:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 9:47 AM
LuoYuanke retitled this revision from Fix uninitialized scalar members in TableGen to [Coverity] Fix uninitialized scalar members in TableGen.Apr 20 2023, 10:36 PM
skan added inline comments.Apr 20 2023, 10:39 PM
llvm/utils/TableGen/DXILEmitter.cpp
29–30

Why -1? zero initializer seems more reasonable?

Address review comments

akshaykhadse marked an inline comment as done.Apr 21 2023, 12:24 AM
skan accepted this revision.Apr 21 2023, 12:46 AM

LGTM

This revision is now accepted and ready to land.Apr 21 2023, 12:46 AM
This revision was landed with ongoing or failed builds.Apr 21 2023, 2:42 AM
This revision was automatically updated to reflect the committed changes.