File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,9 @@ class CombineRuleBuilder {
491
491
void dump () const { print (dbgs ()); }
492
492
493
493
// / Debug-only verification of invariants.
494
+ #ifndef NDEBUG
494
495
void verify () const ;
496
+ #endif
495
497
496
498
private:
497
499
void PrintError (Twine Msg) const { ::PrintError (RuleDef.getLoc (), Msg); }
@@ -669,6 +671,7 @@ void CombineRuleBuilder::print(raw_ostream &OS) const {
669
671
OS << " )\n " ;
670
672
}
671
673
674
+ #ifndef NDEBUG
672
675
void CombineRuleBuilder::verify () const {
673
676
const auto VerifyPats = [&](const PatternMap &Pats) {
674
677
for (const auto &[Name, Pat] : Pats) {
@@ -706,6 +709,7 @@ void CombineRuleBuilder::verify() const {
706
709
}
707
710
}
708
711
}
712
+ #endif
709
713
710
714
bool CombineRuleBuilder::addFeaturePredicates (RuleMatcher &M) {
711
715
if (!RuleDef.getValue (" Predicates" ))
You can’t perform that action at this time.
0 commit comments