[PATCH] D70600: [Error] Add stack traces for llvm::Error invariant violations.

Sam McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 11:24:39 PST 2020


sammccall added a comment.

FWIW working on a codebase that heavily uses both Error and threads, the side-table seems fairly a bit terrifying. Even if the thread safety issues are fixed, do we really want to pay for mutex lock/unlock to create errors, to save a pointer?

thread_local might be an option, though as I understand llvm/Support may have to be portable to environments where that doesn't work well.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70600/new/

https://reviews.llvm.org/D70600





More information about the llvm-commits mailing list