[clang] [clang] [NFC] Mark `UnresolvedSetImpl`'s move operations as defaulted (PR #97930)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 6 18:30:15 PDT 2024
https://github.com/MagentaTreehouse created https://github.com/llvm/llvm-project/pull/97930
None
>From de625afb940fb87efa10c0ecf0e67c9930eab182 Mon Sep 17 00:00:00 2001
From: Mingyi Chen <cmingyi01 at gmail.com>
Date: Sat, 6 Jul 2024 21:25:15 -0400
Subject: [PATCH] [clang] [NFC] Mark `UnresolvedSetImpl`'s move operations as
defaulted
---
clang/include/clang/AST/UnresolvedSet.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/clang/include/clang/AST/UnresolvedSet.h b/clang/include/clang/AST/UnresolvedSet.h
index 1369725ab4e96..46daf32b7eba2 100644
--- a/clang/include/clang/AST/UnresolvedSet.h
+++ b/clang/include/clang/AST/UnresolvedSet.h
@@ -71,9 +71,8 @@ class UnresolvedSetImpl {
UnresolvedSetImpl(const UnresolvedSetImpl &) = default;
UnresolvedSetImpl &operator=(const UnresolvedSetImpl &) = default;
- // FIXME: Switch these to "= default" once MSVC supports generating move ops
- UnresolvedSetImpl(UnresolvedSetImpl &&) {}
- UnresolvedSetImpl &operator=(UnresolvedSetImpl &&) { return *this; }
+ UnresolvedSetImpl(UnresolvedSetImpl &&) = default;
+ UnresolvedSetImpl &operator=(UnresolvedSetImpl &&) = default;
public:
// We don't currently support assignment through this iterator, so we might
More information about the cfe-commits
mailing list