summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-09-14 17:32:52 +0000
committerAdrian Prantl <aprantl@apple.com>2018-09-14 17:32:52 +0000
commit66945cf6e314a244d7ee51be41952d57fbd48753 (patch)
treed60c9572bd86e5ec46c628be7feaa02acd36559c
parent5857c32aede11727164378c6e1a2fd68be513cc3 (diff)
downloadbcm5719-llvm-66945cf6e314a244d7ee51be41952d57fbd48753.tar.gz
bcm5719-llvm-66945cf6e314a244d7ee51be41952d57fbd48753.zip
fix noasserts build
llvm-svn: 342247
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
index 539dbaaee1b..7289579502d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -696,8 +696,10 @@ LLVM_DUMP_METHOD void SDDbgValue::dump(raw_ostream &OS) const {
if (kind==SDNODE)
OS << '(' << u.s.ResNo << ')';
OS << ":\"" << Var->getName() << '"';
+#ifndef NDEBUG
if (Expr->getNumElements())
Expr->dump();
+#endif
}
/// Return true if this node is so simple that we should just print it inline
OpenPOWER on IntegriCloud