Skip to content

Commit 1b4c989

Browse files
committed
[SIL Builder] Fixup non-Asserts build again
1 parent 19df820 commit 1b4c989

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/swift/SIL/SILBuilder.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,10 @@ class SILBuilder {
473473
return createAllocBox(loc, SILBoxType::get(fieldType.getASTType()), Var,
474474
hasDynamicLifetime, reflection,
475475
usesMoveableValueDebugInfo,
476-
/*skipVarDeclAssert*/ false, hasPointerEscape);
476+
#ifndef NDEBUG
477+
/*skipVarDeclAssert*/ false,
478+
#endif
479+
hasPointerEscape);
477480
}
478481

479482
AllocBoxInst *createAllocBox(SILLocation Loc, CanSILBoxType BoxType,

0 commit comments

Comments
 (0)