[mlir] Fix tsan failure in PassCrashRecovery
authorRiver Riddle <riddleriver@gmail.com>
Mon, 18 Oct 2021 15:17:40 +0000 (15:17 +0000)
committerRiver Riddle <riddleriver@gmail.com>
Mon, 18 Oct 2021 15:25:21 +0000 (15:25 +0000)
commit20211b32612bb6dc1dda29b75552731b38b443d2
tree221970597becdbba8e462a32c1d4339d78ab8c32
parent7e5dbcdd59a2d2987f338eaf2ccaa4eba08bf36b
[mlir] Fix tsan failure in PassCrashRecovery

Don't set printOpOnDiagnostic, as this is not safe to call from a threaded context.

Differential Revision: https://reviews.llvm.org/D111752
mlir/lib/Pass/PassCrashRecovery.cpp