[llvm] 263c4a3 - Fix compiler warning when compiling without asserts

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 12 22:29:36 PDT 2020


Author: rathod-sahaab
Date: 2020-03-13T00:26:49-05:00
New Revision: 263c4a3c75a46996bec1f23264874b7f1334426a

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

LOG: Fix compiler warning when compiling without asserts

This patch aims to prevent warning-as-error failures in release build.
As suggested in this comment
https://reviews.llvm.org/D69930#1910922

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D75970

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 c81ab168735c..a766513ded03 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -44,7 +44,7 @@ STATISTIC(NumOpenMPRuntimeFunctionsIdentified,
 STATISTIC(NumOpenMPRuntimeFunctionUsesIdentified,
           "Number of OpenMP runtime function uses identified");
 
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+#if !defined(NDEBUG)
 static constexpr auto TAG = "[" DEBUG_TYPE "]";
 #endif
 


        


More information about the llvm-commits mailing list