Skip to content

Commit dc55182

Browse files
authored
Merge pull request #20 from dcci/itsallmyfault
Reintroduce some seemingly unused code. A test fails.
2 parents f23faf8 + f332122 commit dc55182

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/source/Target/SwiftLanguageRuntime.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,6 +1983,13 @@ Value::ValueType SwiftLanguageRuntime::GetValueType(
19831983
eTypeInstanceIsPointer))
19841984
return Value::eValueTypeLoadAddress;
19851985
}
1986+
1987+
if (static_type_flags.AllSet(eTypeIsSwift | eTypeIsPointer) &&
1988+
static_type_flags.AllClear(eTypeIsGenericTypeParam)) {
1989+
// FIXME: This branch is not covered by any testcases in the test suite.
1990+
if (is_indirect_enum_case || static_type_flags.AllClear(eTypeIsBuiltIn))
1991+
return Value::eValueTypeLoadAddress;
1992+
}
19861993
}
19871994

19881995
// Enabling this makes the inout_variables test hang.

0 commit comments

Comments
 (0)