Skip to content

Commit ba66a81

Browse files
committed
Fix -Asserts warning.
llvm-svn: 116030
1 parent acf0ee5 commit ba66a81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/utils/TableGen/CodeGenDAGPatterns.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ void FindDepVars(TreePatternNode *N, MultipleUseVarSet &DepVars) {
473473
}
474474

475475
//! Dump the dependent variable set:
476+
#ifndef NDEBUG
476477
void DumpDepVars(MultipleUseVarSet &DepVars) {
477478
if (DepVars.empty()) {
478479
DEBUG(errs() << "<empty set>");
@@ -485,6 +486,8 @@ void DumpDepVars(MultipleUseVarSet &DepVars) {
485486
DEBUG(errs() << "]");
486487
}
487488
}
489+
#endif
490+
488491
}
489492

490493
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)