diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index a52a9e5449e..c62a7ed2167 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -84,7 +84,8 @@ static struct { static void RegisterHandler(int Signal) { - assert(NumRegisteredSignals < array_lengthof(RegisteredSignalInfo) && + assert(NumRegisteredSignals < + sizeof(RegisteredSignalInfo)/sizeof(RegisteredSignalInfo[0]) && "Out of space for signal handlers!"); struct sigaction NewHandler;