Skip to content

Commit 8720c13

Browse files
slavapestovDeniz Dizman
authored andcommitted
SIL: Upgrade assert() to ASSERT()
1 parent e8335bd commit 8720c13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/SIL/SILType.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "swift/AST/SILLayout.h"
2222
#include "swift/AST/Types.h"
23+
#include "swift/Basic/Assertions.h"
2324
#include "swift/SIL/AbstractionPattern.h"
2425
#include "swift/SIL/Lifetime.h"
2526
#include "llvm/ADT/Hashing.h"
@@ -109,7 +110,7 @@ class SILType {
109110
SILType(CanType ty, SILValueCategory category)
110111
: value(ty.getPointer(), unsigned(category)) {
111112
if (!ty) return;
112-
assert(ty->isLegalSILType() &&
113+
ASSERT(ty->isLegalSILType() &&
113114
"constructing SILType with type that should have been "
114115
"eliminated by SIL lowering");
115116
}

0 commit comments

Comments
 (0)