diff options
| author | Craig Topper <craig.topper@gmail.com> | 2015-10-18 05:15:38 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2015-10-18 05:15:38 +0000 |
| commit | 1d37443718c15f82762e46addcce8a48fcc83751 (patch) | |
| tree | 1051bb617905c5406c28c9a458adf48738d061ca /llvm/lib/Support | |
| parent | 2626094fa136cbf4a451335975558a50e1e6fb61 (diff) | |
| download | bcm5719-llvm-1d37443718c15f82762e46addcce8a48fcc83751.tar.gz bcm5719-llvm-1d37443718c15f82762e46addcce8a48fcc83751.zip | |
Use array_lengthof. NFC
llvm-svn: 250643
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 352b519f9b4..3f4ef9da48f 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/lib/Support/CrashRecoveryContext.cpp @@ -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) { |

