[llvm] r342247 - fix noasserts build
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 14 10:32:52 PDT 2018
Author: adrian
Date: Fri Sep 14 10:32:52 2018
New Revision: 342247
URL: http://llvm.org/viewvc/llvm-project?rev=342247&view=rev
Log:
fix noasserts build
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp?rev=342247&r1=342246&r2=342247&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp Fri Sep 14 10:32:52 2018
@@ -696,8 +696,10 @@ LLVM_DUMP_METHOD void SDDbgValue::dump(r
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
More information about the llvm-commits
mailing list