Cleanup: remove artificial division between lookup results and const lookup

results. No-one was ever modifying a lookup result, and it would not be
reasonable to do so.

llvm-svn: 230123
This commit is contained in:
Richard Smith
2015-02-21 02:45:19 +00:00
parent 8d981962c0
commit cf4bdde33a
13 changed files with 33 additions and 40 deletions

View File

@@ -2532,8 +2532,8 @@ FunctionDecl::getCorrespondingUnsizedGlobalDeallocationFunction() const {
// This is a sized deallocation function. Find the corresponding unsized
// deallocation function.
lookup_const_result R = getDeclContext()->lookup(getDeclName());
for (lookup_const_result::iterator RI = R.begin(), RE = R.end(); RI != RE;
lookup_result R = getDeclContext()->lookup(getDeclName());
for (lookup_result::iterator RI = R.begin(), RE = R.end(); RI != RE;
++RI)
if (FunctionDecl *FD = dyn_cast<FunctionDecl>(*RI))
if (FD->getNumParams() == 1 && !FD->isVariadic())