ENABLE_EXPENSIVE_CHECKS clean on x86_64-.*-darwin10.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77831
91177308-0d34-0410-b5e6-
96231b3b80d8
return 0;
OverriddenMethodsMapTy::iterator it = OverriddenMethods->find(this);
- if (it == OverriddenMethods->end())
+ if (it == OverriddenMethods->end() || it->second->empty())
return 0;
+
return &(*it->second)[0];
}
return 0;
OverriddenMethodsMapTy::iterator it = OverriddenMethods->find(this);
- if (it == OverriddenMethods->end())
+ if (it == OverriddenMethods->end() || it->second->empty())
return 0;
return &(*it->second)[it->second->size()];