Fix buildbot failures from 7917b3c6.
authorDaniel Thornburgh <dthorn@google.com>
Mon, 21 Mar 2022 17:57:36 +0000 (17:57 +0000)
committerDaniel Thornburgh <dthorn@google.com>
Mon, 21 Mar 2022 17:58:22 +0000 (17:58 +0000)
llvm/lib/Debuginfod/Debuginfod.cpp

index a18cfdd..7b1c36f 100644 (file)
@@ -129,6 +129,7 @@ class StreamedHTTPResponseHandler : public HTTPResponseHandler {
 public:
   StreamedHTTPResponseHandler(CreateStreamFn CreateStream, HTTPClient &Client)
       : CreateStream(CreateStream), Client(Client) {}
+  virtual ~StreamedHTTPResponseHandler() = default;
 
   Error handleBodyChunk(StringRef BodyChunk) override;
 };
@@ -196,7 +197,7 @@ Expected<std::string> getCachedOrDownloadArtifact(
     HTTPRequest Request(ArtifactUrl);
     Error Err = Client.perform(Request, Handler);
     if (Err)
-      return Err;
+      return std::move(Err);
 
     if (Client.responseCode() != 200)
       continue;