================
@@ -737,6 +737,11 @@ class alignas(8) Module {
/// The message provided to the user when there is a conflict.
std::string Message;
+
+ /// Construct an unresolved conflict.
+ UnresolvedConflict() = default;
+ UnresolvedConflict(ModuleId Id, std::string Message)
+ : Id(Id), Message(Message) {}
----------------
ChenMiaoi wrote:
Yes, that fixes the additional copies. However, it still performs a copy
followed by a move for `Id`, just like the original implementation.
https://github.com/llvm/llvm-project/pull/232260
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits