eugenis added a comment. It's actually not necessary to copy the error message as long as error_message_ptr_ is reset under the lock. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91825/new/ https://reviews.llvm.org/D91825