Skip to content

Commit 708b410

Browse files
Update lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp
Co-authored-by: Jonas Devlieghere <[email protected]>
1 parent 1e36c93 commit 708b410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3309,11 +3309,12 @@ SwiftLanguageRuntime::GetSwiftRuntimeTypeInfo(
33093309

33103310
// Resolve all type aliases.
33113311
type = type.GetCanonicalType();
3312-
if (!type)
3312+
if (!type) {
33133313
// FIXME: We could print a better error message if
33143314
// GetCanonicalType() returned an Expected.
33153315
return llvm::createStringError(
33163316
"could not get canonical type (possibly due to unresolved typealias)");
3317+
}
33173318

33183319
// Resolve all generic type parameters in the type for the current
33193320
// frame. Generic parameter binding has to happen in the scratch

0 commit comments

Comments
 (0)