This is an archive of the discontinued LLVM Phabricator instance.

[LiveDebugValues] Initialized variable to avoid msan reports
ClosedPublic

Authored by vitalybuka on May 11 2023, 7:28 PM.

Diff Detail

Event Timeline

vitalybuka created this revision.May 11 2023, 7:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2023, 7:28 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
vitalybuka requested review of this revision.May 11 2023, 7:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2023, 7:28 PM
vitalybuka edited the summary of this revision. (Show Details)May 11 2023, 7:33 PM
vitalybuka added a reviewer: jmorse.
vitalybuka edited the summary of this revision. (Show Details)May 11 2023, 7:34 PM
jmorse accepted this revision.May 16 2023, 7:47 AM

LGTM, thanks for catching that, it is indeed broken. I think there's only one path through the code that ends up reading that uninitialized, and the output from it shouldn't be used, so this is a safe way to fix it.

This revision is now accepted and ready to land.May 16 2023, 7:47 AM
vitalybuka retitled this revision from [LiveDebugValues] Looks like a bug? to [LiveDebugValues] Initialized variable to avoid msan reports.May 16 2023, 11:02 AM
vitalybuka edited the summary of this revision. (Show Details)

remove fixme

jmorse accepted this revision.May 17 2023, 4:06 AM

Also LGTM