[llvm-branch-commits] [llvm] 461fc8b - [Debuginfod] Fix curl_easy_init in -DLLVM_ENABLE_ASSERTIONS=off build after D112753
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Feb 4 17:35:19 PST 2022
Author: Fangrui Song
Date: 2022-02-04T17:35:02-08:00
New Revision: 461fc8b4caabddde77d329333dfb21b7089f9d44
URL: https://github.com/llvm/llvm-project/commit/461fc8b4caabddde77d329333dfb21b7089f9d44
DIFF: https://github.com/llvm/llvm-project/commit/461fc8b4caabddde77d329333dfb21b7089f9d44.diff
LOG: [Debuginfod] Fix curl_easy_init in -DLLVM_ENABLE_ASSERTIONS=off build after D112753
(cherry picked from commit 3dd2d4c0a239ce78421d51491456cb1a075ad2f3)
Added:
Modified:
llvm/lib/Debuginfod/HTTPClient.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Debuginfod/HTTPClient.cpp b/llvm/lib/Debuginfod/HTTPClient.cpp
index 65f457933b92d..cba342c9b3439 100644
--- a/llvm/lib/Debuginfod/HTTPClient.cpp
+++ b/llvm/lib/Debuginfod/HTTPClient.cpp
@@ -156,7 +156,8 @@ HTTPClient::HTTPClient() {
"Must call HTTPClient::initialize() at the beginning of main().");
if (Curl)
return;
- assert((Curl = curl_easy_init()) && "Curl could not be initialized.");
+ Curl = curl_easy_init();
+ assert(Curl && "Curl could not be initialized");
// Set the callback hooks.
curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, curlWriteFunction);
curl_easy_setopt(Curl, CURLOPT_HEADERFUNCTION, curlHeaderFunction);
More information about the llvm-branch-commits
mailing list