From 6aa526bf76ba74b79ebf4d96d2c1f12d59067530 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 8 Oct 2010 02:07:22 +0000 Subject: [PATCH] Fix -Asserts warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116030 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenDAGPatterns.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 303aa6c450c..61de0d2dd34 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -473,6 +473,7 @@ void FindDepVars(TreePatternNode *N, MultipleUseVarSet &DepVars) { } //! Dump the dependent variable set: +#ifndef NDEBUG void DumpDepVars(MultipleUseVarSet &DepVars) { if (DepVars.empty()) { DEBUG(errs() << ""); @@ -485,6 +486,8 @@ void DumpDepVars(MultipleUseVarSet &DepVars) { DEBUG(errs() << "]"); } } +#endif + } //===----------------------------------------------------------------------===//