[llvm] a50c0b0 - Fix compiler warning when compiling without asserts [NFC]
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 10 04:58:06 PST 2020
Author: Mikael Holmen
Date: 2020-02-10T13:55:52+01:00
New Revision: a50c0b0df733423f9f6f92bb4e0be26f73326ae3
URL: https://github.com/llvm/llvm-project/commit/a50c0b0df733423f9f6f92bb4e0be26f73326ae3
DIFF: https://github.com/llvm/llvm-project/commit/a50c0b0df733423f9f6f92bb4e0be26f73326ae3.diff
LOG: Fix compiler warning when compiling without asserts [NFC]
Added:
Modified:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index f84a1ac438fc..b7e52cefd484 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -44,7 +44,9 @@ STATISTIC(NumOpenMPRuntimeFunctionsIdentified,
STATISTIC(NumOpenMPRuntimeFunctionUsesIdentified,
"Number of OpenMP runtime function uses identified");
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
static constexpr auto TAG = "[" DEBUG_TYPE "]";
+#endif
namespace {
struct OpenMPOpt {
More information about the llvm-commits
mailing list