aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CrashRecoveryContext.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2022-01-26 16:55:53 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2022-01-26 16:55:53 +0100
commitf15014ff549a8686671a599f7b49ce9963769eaf (patch)
treec71b273ecd3983fba8bfd6777b534c045b120619 /llvm/lib/Support/CrashRecoveryContext.cpp
parent297bbf106288b0d673709ca02917d82e7bebdf1a (diff)
downloadllvm-f15014ff549a8686671a599f7b49ce9963769eaf.zip
llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.gz
llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.bz2
Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17"
This reverts commit ef8206320769ad31422a803a0d6de6077fd231d2. - It conflicts with the existing llvm::size in STLExtras, which will now never be called. - Calling it without llvm:: breaks C++17 compat
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index b55e8a5..2ee3074 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -348,7 +348,7 @@ static void uninstallExceptionOrSignalHandlers() {
static const int Signals[] =
{ SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP };
-static const unsigned NumSignals = size(Signals);
+static const unsigned NumSignals = array_lengthof(Signals);
static struct sigaction PrevActions[NumSignals];
static void CrashRecoverySignalHandler(int Signal) {