This is an archive of the discontinued LLVM Phabricator instance.

Fix Undefined Behavior in MLIR Diagnostic: don't call memcpy with a nullptr source
ClosedPublic

Authored by mehdi_amini on Oct 2 2021, 2:32 PM.

Details

Summary

This happens when streaming an empty Twine as part of a diagnostic.

Diff Detail

Event Timeline

mehdi_amini created this revision.Oct 2 2021, 2:32 PM
mehdi_amini requested review of this revision.Oct 2 2021, 2:32 PM
rriddle accepted this revision.Oct 2 2021, 2:43 PM
This revision is now accepted and ready to land.Oct 2 2021, 2:43 PM