We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8335bd commit 8720c13Copy full SHA for 8720c13
include/swift/SIL/SILType.h
@@ -20,6 +20,7 @@
20
21
#include "swift/AST/SILLayout.h"
22
#include "swift/AST/Types.h"
23
+#include "swift/Basic/Assertions.h"
24
#include "swift/SIL/AbstractionPattern.h"
25
#include "swift/SIL/Lifetime.h"
26
#include "llvm/ADT/Hashing.h"
@@ -109,7 +110,7 @@ class SILType {
109
110
SILType(CanType ty, SILValueCategory category)
111
: value(ty.getPointer(), unsigned(category)) {
112
if (!ty) return;
- assert(ty->isLegalSILType() &&
113
+ ASSERT(ty->isLegalSILType() &&
114
"constructing SILType with type that should have been "
115
"eliminated by SIL lowering");
116
}
0 commit comments