Skip to content

Commit 16b9ead

Browse files
Fix typo NDNEBUG -> NDEBUG to unbreak release builds (#27086)
1 parent dff4c78 commit 16b9ead

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/SIL/SILInstructionWorklist.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,19 @@ class SILInstructionWorklist : SILInstructionWorklistBase {
151151
/// \return whether the instruction was deleted or modified.
152152
bool replaceInstructionWithInstruction(SILInstruction *instruction,
153153
SILInstruction *result
154-
#ifndef NDNEBUG
154+
#ifndef NDEBUG
155155
,
156156
std::string instructionDescription
157157
#endif
158158
) {
159159
if (result == instruction) {
160+
#ifndef NDEBUG
160161
withDebugStream([&](llvm::raw_ostream &stream, StringRef loggingName) {
161162
stream << loggingName << ": Mod = " << instructionDescription << '\n'
162163
<< " "
163164
<< " New = " << *instruction << '\n';
164165
});
166+
#endif
165167

166168
// If the instruction was modified, it's possible that it is now dead.
167169
// if so, remove it.

0 commit comments

Comments
 (0)