forked from OSchip/llvm-project
Use array_lengthof. No functional change.
llvm-svn: 131008
This commit is contained in:
parent
57c8f58aeb
commit
7a78f66145
|
@ -225,10 +225,8 @@ static bool FunctionCallsSetJmp(const Function *F) {
|
|||
"vfork",
|
||||
"getcontext"
|
||||
};
|
||||
static const size_t NumReturnsTwiceFns = sizeof(ReturnsTwiceFns) /
|
||||
sizeof(const char *);
|
||||
|
||||
for (unsigned I = 0; I < NumReturnsTwiceFns; ++I)
|
||||
for (unsigned I = 0; I < array_lengthof(ReturnsTwiceFns); ++I)
|
||||
if (const Function *Callee = M->getFunction(ReturnsTwiceFns[I])) {
|
||||
if (!Callee->use_empty())
|
||||
for (Value::const_use_iterator
|
||||
|
|
Loading…
Reference in New Issue