//
//===----------------------------------------------------------------------===//
-#include "llvm/Support/Path.h"
#include "Reproducer.h"
+#include "llvm/Support/Path.h"
using namespace llvm;
using namespace llvm::dsymutil;
switch (Mode) {
case ReproducerMode::Generate: {
std::error_code EC;
- auto Repro = std::make_unique<ReproducerGenerate>(EC);
+ std::unique_ptr<Reproducer> Repro =
+ std::make_unique<ReproducerGenerate>(EC);
if (EC)
return errorCodeToError(EC);
- return Repro;
+ return std::move(Repro);
}
case ReproducerMode::Use: {
std::error_code EC;
- auto Repro = std::make_unique<ReproducerUse>(Root, EC);
+ std::unique_ptr<Reproducer> Repro =
+ std::make_unique<ReproducerUse>(Root, EC);
if (EC)
return errorCodeToError(EC);
- return Repro;
+ return std::move(Repro);
}
case ReproducerMode::Off:
return std::make_unique<Reproducer>();