diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-21 02:45:19 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-02-21 02:45:19 +0000 |
commit | cf4bdde33a0450f212e7577b71a7bcfe5213cb15 (patch) | |
tree | 0f26b261f986553682e4a0eb67867313b41c15f5 /clang/lib/AST/Decl.cpp | |
parent | 8d981962c043ed5111f8e941a1501e100e54f8f7 (diff) | |
download | bcm5719-llvm-cf4bdde33a0450f212e7577b71a7bcfe5213cb15.tar.gz bcm5719-llvm-cf4bdde33a0450f212e7577b71a7bcfe5213cb15.zip |
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
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index aadde0cb3a4..e7e9941e3da 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -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()) |