Skip to content

Commit e11cfe9

Browse files
committed
---
yaml --- r: 348518 b: refs/heads/master c: 4ffc0e5 h: refs/heads/master
1 parent afe214c commit e11cfe9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 9f43e93d739d81631ce9d10b2008bc141812aa9e
2+
refs/heads/master: 4ffc0e59d0f779e5dd22849c085962b8098a5ee7
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/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)