This is an archive of the discontinued LLVM Phabricator instance.

Initialize output parameters
ClosedPublic

Authored by vitalybuka on Jan 7 2022, 11:00 AM.

Details

Summary

If the function returns true, it should
set all output paremeters, similar to Output::preflightElement, or we
have UB on code like:

void *SaveInfo;
if (io.preflightFlowElement(i, SaveInfo))
  io.postflightFlowElement(SaveInfo);

It's going to be detected by msan with:
-Xclang -enable-noundef-analysis -mllvm -msan-eager-checks=1

Diff Detail

Event Timeline

vitalybuka created this revision.Jan 7 2022, 11:00 AM
vitalybuka requested review of this revision.Jan 7 2022, 11:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 7 2022, 11:00 AM
kda accepted this revision.Jan 7 2022, 2:15 PM
This revision is now accepted and ready to land.Jan 7 2022, 2:15 PM
This revision was automatically updated to reflect the committed changes.