mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Use array_lengthof. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6212f9a304
commit
8265e6ab4f
@ -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…
x
Reference in New Issue
Block a user