File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -151,17 +151,19 @@ class SILInstructionWorklist : SILInstructionWorklistBase {
151
151
// / \return whether the instruction was deleted or modified.
152
152
bool replaceInstructionWithInstruction (SILInstruction *instruction,
153
153
SILInstruction *result
154
- #ifndef NDNEBUG
154
+ #ifndef NDEBUG
155
155
,
156
156
std::string instructionDescription
157
157
#endif
158
158
) {
159
159
if (result == instruction) {
160
+ #ifndef NDEBUG
160
161
withDebugStream ([&](llvm::raw_ostream &stream, StringRef loggingName) {
161
162
stream << loggingName << " : Mod = " << instructionDescription << ' \n '
162
163
<< " "
163
164
<< " New = " << *instruction << ' \n ' ;
164
165
});
166
+ #endif
165
167
166
168
// If the instruction was modified, it's possible that it is now dead.
167
169
// if so, remove it.
You can’t perform that action at this time.
0 commit comments