diff --git a/llvm/tools/dsymutil/Reproducer.cpp b/llvm/tools/dsymutil/Reproducer.cpp index 7b06078a104b..2e28859c140d 100644 --- a/llvm/tools/dsymutil/Reproducer.cpp +++ b/llvm/tools/dsymutil/Reproducer.cpp @@ -97,5 +97,5 @@ Reproducer::createReproducer(ReproducerMode Mode, StringRef Root, int Argc, } if (EC) return errorCodeToError(EC); - return Repro; + return {std::move(Repro)}; }