Use array_lengthof. NFC

llvm-svn: 250643
This commit is contained in:
Craig Topper 2015-10-18 05:15:38 +00:00
parent 2626094fa1
commit 1d37443718
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ void CrashRecoveryContext::Disable() {
static const int Signals[] =
{ SIGABRT, SIGBUS, SIGFPE, SIGILL, SIGSEGV, SIGTRAP };
static const unsigned NumSignals = sizeof(Signals) / sizeof(Signals[0]);
static const unsigned NumSignals = array_lengthof(Signals);
static struct sigaction PrevActions[NumSignals];
static void CrashRecoverySignalHandler(int Signal) {