Skip to content

Commit eb842cc

Browse files
authored
Merge pull request #12992 from anemet/opt-remark_fix-no-assert-build
2 parents 26fee83 + fb00846 commit eb842cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/SIL/OptimizationRemark.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ class Emitter {
170170
bool EmitRemark =
171171
ORE && (ORE->isEnabled<RemarkT>() || ORE->Module.getOptRecordStream());
172172
// Same for DEBUG.
173-
bool EmitDebug = false
174-
#ifndef _NDEBUG
175-
|| (llvm::DebugFlag && llvm::isCurrentDebugType(PassName));
176-
#endif // _NDEBUG
173+
bool EmitDebug = false;
174+
#ifndef NDEBUG
175+
EmitDebug |= llvm::DebugFlag && llvm::isCurrentDebugType(PassName);
176+
#endif // NDEBUG
177177

178178
if (EmitRemark || EmitDebug) {
179179
auto R = RemarkBuilder();

0 commit comments

Comments
 (0)