[PATCH] D59998: [Sema] Remove unneeded call to LookupResult::resolveKind
Tom Rix via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 29 08:23:19 PDT 2019
trixirt created this revision.
trixirt added a reviewer: rjmccall.
trixirt added a project: clang.
Herald added a subscriber: cfe-commits.
>From code inspection it was noticed that CppNamespaceLookup's
caller CppLookupName calls LookupResult::resolveKind when
CppNamespaceLookup was successful or had an earlier success.
Repository:
rC Clang
https://reviews.llvm.org/D59998
Files:
lib/Sema/SemaLookup.cpp
Index: lib/Sema/SemaLookup.cpp
===================================================================
--- lib/Sema/SemaLookup.cpp
+++ lib/Sema/SemaLookup.cpp
@@ -948,7 +948,7 @@
if (LookupDirect(S, R, UUE.getNominatedNamespace()))
Found = true;
- R.resolveKind();
+ // Defer resolution to the caller.
return Found;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59998.192830.patch
Type: text/x-patch
Size: 336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190329/b371ec8a/attachment.bin>
More information about the cfe-commits
mailing list