[PATCH] D70600: [Error] Add stack traces for llvm::Error invariant violations.
    Lang Hames via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jan  2 17:09:57 PST 2020
    
    
  
lhames added a comment.
Oh, I remember part of my motivation for designing it this way: While failure values are expected to be expensive, we don't want to make them unnecessarily expensive, which is why the error-geneation-point trace is under a flag: You don't want to stack-trace every error that is ever generated. However, making this conditional means we need to check a global flag to decide whether we *should* do the stack trace. Once you're doing that, you may as well make your "flag" a pointer to the side table.
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