aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2020-04-16 16:59:35 -0400
committerLouis Dionne <ldionne@apple.com>2020-04-21 15:27:33 -0400
commit58f32435e8bf8e32c4e2fbe7ffa866ffc52fab13 (patch)
tree55d3989d500a82f8da8fd813bdf134876bfa42fd /clang/lib/Frontend/CompilerInvocation.cpp
parent7dece2fde3ef9a57431b1a8ebe8ed08e831ba677 (diff)
downloadllvm-58f32435e8bf8e32c4e2fbe7ffa866ffc52fab13.zip
llvm-58f32435e8bf8e32c4e2fbe7ffa866ffc52fab13.tar.gz
llvm-58f32435e8bf8e32c4e2fbe7ffa866ffc52fab13.tar.bz2
[libc++abi] Add a rate limiter when logging dynamic_cast errors
This upstreams a fix that Howard made a long time ago, where so many errors would be logged that applications were becoming sluggish. With this patch, the first three errors will be printed, and after that the printing frequency decreases exponentially. _LIBCXX_DYNAMIC_FALLBACK is only enabled on Apple platforms, so this should be NFC for other platforms. rdar://14996273 Differential Revision: https://reviews.llvm.org/D78330
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions