This is an archive of the discontinued LLVM Phabricator instance.

Add some initializations code for sanitizers
AbandonedPublic

Authored by yingcong-wu on Jun 28 2023, 1:55 AM.

Details

Summary

This patch aims to do some missing initializations to some class members. This would make the code more conforming to the CppCoreGuildlines Pro.safety: Type-safety profile, which says to have member variables initialized.

Diff Detail

Event Timeline

yingcong-wu created this revision.Jun 28 2023, 1:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 1:55 AM
Herald added a subscriber: Enna1. · View Herald Transcript
yingcong-wu requested review of this revision.Jun 28 2023, 1:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 1:55 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Can you please state the motivation of this patch and what are the behavior changes (ideally testable)? Some information can go to the summary/commit message.

Yes, I would do that. Thank you.

yingcong-wu edited the summary of this revision. (Show Details)Jun 28 2023, 7:31 PM
vitalybuka resigned from this revision.Jun 29 2023, 10:52 PM

If it inserts memset, it will break things. We have workaround to prevent memsets, but it's not 100% reliably.
So I would recommend avoid change without need.

yingcong-wu abandoned this revision.Jun 29 2023, 11:05 PM

We don't want this patch to break things. I will abandon this patch then.