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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user