[llvm] df79000 - [clangd] fix warning by adding missing parens

Augie Fackler via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 10:41:38 PST 2025


Author: Augie Fackler
Date: 2025-03-07T13:38:49-05:00
New Revision: df79000896101acc9b8d7435e59f767b36c00ac8

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

LOG: [clangd] fix warning by adding missing parens

Added: 
    

Modified: 
    llvm/lib/Debuginfod/Debuginfod.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Debuginfod/Debuginfod.cpp b/llvm/lib/Debuginfod/Debuginfod.cpp
index e570982e357e3..db316a1b37b3b 100644
--- a/llvm/lib/Debuginfod/Debuginfod.cpp
+++ b/llvm/lib/Debuginfod/Debuginfod.cpp
@@ -309,7 +309,7 @@ Expected<std::string> getCachedOrDownloadArtifact(
       Error Err = Client.perform(Request, Handler);
       if (Err)
         return std::move(Err);
-      if (Err = Handler.commit())
+      if ((Err = Handler.commit()))
         return std::move(Err);
 
       unsigned Code = Client.responseCode();


        


More information about the llvm-commits mailing list