Skip to content

Commit ea5227a

Browse files
committed
use proper compilation marker in typelowering
1 parent 767fba9 commit ea5227a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SIL/TypeLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ getTypeLoweringForUncachedLoweredFunctionType(TypeKey key) {
15721572
assert(isa<AnyFunctionType>(key.SubstType));
15731573
assert(key.UncurryLevel == 0);
15741574

1575-
#ifdef DEBUG
1575+
#ifndef NDEBUG
15761576
// Catch recursions.
15771577
insert(key, nullptr);
15781578
#endif
@@ -1600,7 +1600,7 @@ TypeConverter::getTypeLoweringForUncachedLoweredType(TypeKey key) {
16001600
assert(!find(key) && "re-entrant or already cached");
16011601
assert(isLoweredType(key.SubstType) && "didn't lower out l-value type?");
16021602

1603-
#ifdef DEBUG
1603+
#ifndef NDEBUG
16041604
// Catch reentrancy bugs.
16051605
insert(key, nullptr);
16061606
#endif

0 commit comments

Comments
 (0)