summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-15 04:37:54 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-15 04:37:54 +0000
commit26b45c27f1cbe38a8b096feeffe79b5633f37db2 (patch)
tree8c5933ab88af9a98964c3cd9faeb19194a51c54b /llvm/lib/Support/Unix
parent93b402d924b8737f5b62082b3d2e073a2f66ccd5 (diff)
downloadbcm5719-llvm-26b45c27f1cbe38a8b096feeffe79b5633f37db2.tar.gz
bcm5719-llvm-26b45c27f1cbe38a8b096feeffe79b5633f37db2.zip
Revert part of 186302 to fix buildbots.
llvm-svn: 186303
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Signals.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index a52a9e5449e..c62a7ed2167 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/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;
OpenPOWER on IntegriCloud