<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56754>56754</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[CodeGen] Building error introduced by commit c53cbce
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
maurossi
</td>
</tr>
</table>
<pre>
In commit c53cbce [CodeGen] Define ABI breaking class members correctly
some non-static class members declared inside `#ifndef NDEBUG/#endef `bracing were not
correctly changed to `#if LLVM_ENABLE_ABI_BREAKING_CHECKS/#endef` bracing
The following diff is required to be able to build libLLVMCodeGen
```
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 96131dc2983e..c25a8a9ab1bc 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -102,7 +102,7 @@ const bool PrintDAGs = false;
} // end namespace llvm
-#ifndef NDEBUG
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
/// In some situations a few uninteresting nodes depend on nearly all other
/// nodes in the graph, provide a cutoff to hide them.
static cl::opt<unsigned> ViewMISchedCutoff("view-misched-cutoff", cl::Hidden,
@@ -115,7 +115,7 @@ static cl::opt<std::string> SchedOnlyFunc("misched-only-func", cl::Hidden,
cl::desc("Only schedule this function"));
static cl::opt<unsigned> SchedOnlyBlock("misched-only-block", cl::Hidden,
cl::desc("Only schedule this MBB#"));
-#endif // NDEBUG
+#endif
/// Avoid quadratic complexity in unusually large basic blocks by limiting the
/// size of the ready lists.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydVdty2zYQ_RrqZYcaXkRJfOCDKMmOJ7bbadq8enCjiAYEFAC04359FqTEOlYmcaLBiOQucPZgcXZBDX-ubjQw03XSAytyRpmAqKi3hotroaNiBzvRSC1gU98AtYJ8kvoAT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