Skip to content

Commit 1a3230c

Browse files
committed
Fix incorrect assertion condition.
1 parent e9d37d3 commit 1a3230c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ swift::Type SwiftASTContext::GetSwiftType(opaque_compiler_type_t opaque_type) {
218218

219219
swift::CanType
220220
SwiftASTContext::GetCanonicalSwiftType(opaque_compiler_type_t opaque_type) {
221-
assert(opaque_type && *reinterpret_cast<const char *>(opaque_type) != '$' &&
221+
assert(!opaque_type || *reinterpret_cast<const char *>(opaque_type) != '$' &&
222222
"wrong type system");
223223
return lldb_private::GetCanonicalSwiftType(CompilerType(this, opaque_type));
224224
}

0 commit comments

Comments
 (0)