Skip to content

Commit 21d0815

Browse files
committed
Merge pull request #1266 from dduan/typelowering_marker
use proper compilation marker in typelowering
2 parents 767fba9 + ea5227a commit 21d0815

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)