This is an archive of the discontinued LLVM Phabricator instance.

[mlir][AsmPrinter] Fix multi-threaded segfault by using explicit null stream per thread
ClosedPublic

Authored by rriddle on Apr 15 2021, 10:48 AM.

Details

Summary

We were using llvm::nulls, but that isn't thread safe so we switch to giving each thread it's own null stream.

Diff Detail

Event Timeline

rriddle created this revision.Apr 15 2021, 10:48 AM
rriddle requested review of this revision.Apr 15 2021, 10:48 AM
mehdi_amini accepted this revision.Apr 15 2021, 11:09 AM
This revision is now accepted and ready to land.Apr 15 2021, 11:09 AM
jpienaar accepted this revision.Apr 15 2021, 11:14 AM