[llvm] 3dd2d4c - [Debuginfod] Fix curl_easy_init in -DLLVM_ENABLE_ASSERTIONS=off build after D112753
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 17:29:24 PST 2022
Author: Fangrui Song
Date: 2022-02-04T17:29:19-08:00
New Revision: 3dd2d4c0a239ce78421d51491456cb1a075ad2f3
URL: https://github.com/llvm/llvm-project/commit/3dd2d4c0a239ce78421d51491456cb1a075ad2f3
DIFF: https://github.com/llvm/llvm-project/commit/3dd2d4c0a239ce78421d51491456cb1a075ad2f3.diff
LOG: [Debuginfod] Fix curl_easy_init in -DLLVM_ENABLE_ASSERTIONS=off build after D112753
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-commits
mailing list