[PATCH] D131313: [Support] Use constexpr if

Sergei Barannikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 6 09:33:55 PDT 2022


barannikov88 added inline comments.


================
Comment at: llvm/include/llvm/Support/Mutex.h:50
+        }
           // Single-threaded debugging code.  This would be racy in
           // multithreaded mode, but provides not basic checks in single
----------------
Wrong indentation here and in `lock`.


================
Comment at: llvm/include/llvm/Support/Threading.h:54-56
+  if constexpr (LLVM_ENABLE_THREADS)
+    return true;
+  return false;
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131313/new/

https://reviews.llvm.org/D131313



More information about the llvm-commits mailing list