forked from OSchip/llvm-project
Annotate LookupResult::clear() as LLVM_ATTRIBUTE_REINITIALIZES to silence bugprone-use-after-move after rC342925
Reviewers: rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D52446 llvm-svn: 342950
This commit is contained in:
parent
037720ba4f
commit
b5305be699
|
@ -540,7 +540,7 @@ public:
|
|||
}
|
||||
|
||||
/// Clears out any current state.
|
||||
void clear() {
|
||||
LLVM_ATTRIBUTE_REINITIALIZES void clear() {
|
||||
ResultKind = NotFound;
|
||||
Decls.clear();
|
||||
if (Paths) deletePaths(Paths);
|
||||
|
|
Loading…
Reference in New Issue