[llvm] ace2a6c - Fix buildbot failures from 7917b3c6.

Daniel Thornburgh via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 21 10:58:33 PDT 2022


Author: Daniel Thornburgh
Date: 2022-03-21T17:58:22Z
New Revision: ace2a6c15e34ecda03f25d6950b829ce59060d69

URL: https://github.com/llvm/llvm-project/commit/ace2a6c15e34ecda03f25d6950b829ce59060d69
DIFF: https://github.com/llvm/llvm-project/commit/ace2a6c15e34ecda03f25d6950b829ce59060d69.diff

LOG: Fix buildbot failures from 7917b3c6.

Added: 
    

Modified: 
    llvm/lib/Debuginfod/Debuginfod.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Debuginfod/Debuginfod.cpp b/llvm/lib/Debuginfod/Debuginfod.cpp
index a18cfdd41037a..7b1c36fdbe09c 100644
--- a/llvm/lib/Debuginfod/Debuginfod.cpp
+++ b/llvm/lib/Debuginfod/Debuginfod.cpp
@@ -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;


        


More information about the llvm-commits mailing list