assert -> ASSERT

This commit is contained in:
Henrik G. Olsson
2025-10-24 13:14:21 -07:00
parent af819b9428
commit 72439d35a7

View File

@@ -37,7 +37,7 @@ namespace {
ValueDecl *getKnownSingleDecl(ASTContext &SwiftContext, StringRef DeclName) {
SmallVector<ValueDecl *, 1> decls;
SwiftContext.lookupInSwiftModule(DeclName, decls);
assert(decls.size() < 2);
ASSERT(decls.size() < 2);
if (decls.size() != 1) return nullptr;
return decls[0];
}
@@ -468,7 +468,7 @@ public:
out << "\", paramInfo: [";
// reset firstParam inside paramInfo array. At this point firstParam will
// always be false, so no need to save the current value.
assert(!firstParam);
ASSERT(!firstParam);
firstParam = true;
bool hadAttributes = swiftifyImpl(ImporterImpl, *this, Method, ClangDecl);
firstParam = false;