From: Adrian Prantl Date: Fri, 14 Sep 2018 17:32:52 +0000 (+0000) Subject: fix noasserts build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66945cf6e314a244d7ee51be41952d57fbd48753;p=platform%2Fupstream%2Fllvm.git fix noasserts build llvm-svn: 342247 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index 539dbaa..7289579 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