File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -836,6 +836,7 @@ void RewriteSystem::verifyRewriteLoops() const {
836
836
// / since this suggests a misunderstanding on my part.
837
837
void RewriteSystem::verifyRedundantConformances (
838
838
llvm::DenseSet<unsigned > redundantConformances) const {
839
+ #ifndef NDEBUG
839
840
for (unsigned ruleID : redundantConformances) {
840
841
const auto &rule = getRule (ruleID);
841
842
assert (!rule.isPermanent () &&
@@ -853,11 +854,13 @@ void RewriteSystem::verifyRedundantConformances(
853
854
abort ();
854
855
}
855
856
}
857
+ #endif
856
858
}
857
859
858
860
// Assert if homotopy reduction failed to eliminate a rewrite rule it was
859
861
// supposed to delete.
860
862
void RewriteSystem::verifyMinimizedRules () const {
863
+ #ifndef NDEBUG
861
864
for (const auto &rule : Rules) {
862
865
// Note that sometimes permanent rules can be simplified, but they can never
863
866
// be redundant.
@@ -895,4 +898,5 @@ void RewriteSystem::verifyMinimizedRules() const {
895
898
abort ();
896
899
}
897
900
}
901
+ #endif
898
902
}
You can’t perform that action at this time.
0 commit comments