git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142013
91177308-0d34-0410-b5e6-
96231b3b80d8
/// FIXME: Remove after <rdar://problem/8031714> is fixed.
/// FIXME: Is the above FIXME valid?
bool Function::callsFunctionThatReturnsTwice() const {
- static const char *ReturnsTwiceFns[] = {
+ static const char *const ReturnsTwiceFns[] = {
"_setjmp",
"setjmp",
"sigsetjmp",
if (!F)
continue;
StringRef Name = F->getName();
- for (unsigned J = 0; J < array_lengthof(ReturnsTwiceFns); ++J) {
+ for (unsigned J = 0, e = array_lengthof(ReturnsTwiceFns); J != e; ++J) {
if (Name == ReturnsTwiceFns[J])
return true;
}