forked from OSchip/llvm-project
Avoid calling array_endof in a static initializer, as it incurs
dynamic initialization. llvm-svn: 48666
This commit is contained in:
parent
5a6ac79738
commit
026eed69e7
|
|
@ -41,7 +41,7 @@ std::vector<sys::Path> *DirectoriesToRemove = 0;
|
|||
const int IntSigs[] = {
|
||||
SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGTERM, SIGUSR1, SIGUSR2
|
||||
};
|
||||
const int *IntSigsEnd = array_endof(IntSigs);
|
||||
const int *IntSigsEnd = IntSigs + sizeof(IntSigs) / sizeof(IntSigs[0]);
|
||||
|
||||
// KillSigs - Signals that are synchronous with the program that will cause it
|
||||
// to die.
|
||||
|
|
@ -51,7 +51,7 @@ const int KillSigs[] = {
|
|||
, SIGEMT
|
||||
#endif
|
||||
};
|
||||
const int *KillSigsEnd = array_endof(KillSigs);
|
||||
const int *KillSigsEnd = KillSigs + sizeof(KillSigs) / sizeof(KillSigs[0]);
|
||||
|
||||
#ifdef HAVE_BACKTRACE
|
||||
void* StackTrace[256];
|
||||
|
|
|
|||
Loading…
Reference in New Issue