summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 77b31fc0566..c00b11893bf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -317,6 +317,7 @@ void WinEHNumbering::createUnwindMapEntry(int ToState, ActionHandler *AH) {
}
static void print_name(const Value *V) {
+#ifndef NDEBUG
if (!V) {
DEBUG(dbgs() << "null");
return;
@@ -326,6 +327,7 @@ static void print_name(const Value *V) {
DEBUG(dbgs() << F->getName());
else
DEBUG(V->dump());
+#endif
}
void WinEHNumbering::proccessCallSite(ArrayRef<ActionHandler *> Actions,
OpenPOWER on IntegriCloud