Skip to content

Commit b5713e5

Browse files
Update lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp
Co-authored-by: Jonas Devlieghere <[email protected]> (cherry picked from commit 708b410)
1 parent 765058e commit b5713e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
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)