This is an archive of the discontinued LLVM Phabricator instance.

Fix static code analysis concerns with uninitialized variables
ClosedPublic

Authored by Manna on Apr 9 2021, 3:51 AM.

Details

Summary

RISCVABIInfo::classifyArgumentType: Fix static analyzer warnings with uninitialized variables warnings - NFCI

Diff Detail

Event Timeline

Manna created this revision.Apr 9 2021, 3:51 AM
Manna requested review of this revision.Apr 9 2021, 3:51 AM
Manna added reviewers: RKSimon, asb.
RKSimon accepted this revision.Apr 9 2021, 5:40 AM

LGTM

Out of interest, which analyzer is reporting this? detectFPCCEligibleStruct always clears those values at the start of the method so its annoying if clang can't peek in to realise that.

This revision is now accepted and ready to land.Apr 9 2021, 5:40 AM
Manna added a comment.Apr 9 2021, 5:50 AM

LGTM

Out of interest, which analyzer is reporting this? detectFPCCEligibleStruct always clears those values at the start of the method so its annoying if clang can't peek in to realise that.

Thank you, Simon for the quick response and the acceptance. Klocwork is reporting this. Would it be possible to commit the patch?

Thanks,
Soumi Manna

LGTM

Out of interest, which analyzer is reporting this? detectFPCCEligibleStruct always clears those values at the start of the method so its annoying if clang can't peek in to realise that.

Thank you, Simon for the quick response and the acceptance. Klocwork is reporting this. Would it be possible to commit the patch?

Sure, whats your email address please?

Manna added a comment.Apr 9 2021, 6:05 AM

LGTM

Out of interest, which analyzer is reporting this? detectFPCCEligibleStruct always clears those values at the start of the method so its annoying if clang can't peek in to realise that.

Thank you, Simon for the quick response and the acceptance. Klocwork is reporting this. Would it be possible to commit the patch?

Sure, whats your email address please?

Thank you, Simon. I greatly appreciate it. Email address: soumi.manna@intel.com

Herald added a project: Restricted Project. · View Herald TranscriptApr 9 2021, 7:24 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript