fix noasserts build

llvm-svn: 342247
This commit is contained in:
Adrian Prantl 2018-09-14 17:32:52 +00:00
parent 5857c32aed
commit 66945cf6e3
1 changed files with 2 additions and 0 deletions

View File

@ -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