Skip to content

Commit

Permalink
Merge pull request #20 from dcci/itsallmyfault
Browse files Browse the repository at this point in the history
Reintroduce some seemingly unused code. A test fails.
  • Loading branch information
JDevlieghere authored Oct 25, 2019
2 parents f23faf8 + f332122 commit dc55182
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lldb/source/Target/SwiftLanguageRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,13 @@ Value::ValueType SwiftLanguageRuntime::GetValueType(
eTypeInstanceIsPointer))
return Value::eValueTypeLoadAddress;
}

if (static_type_flags.AllSet(eTypeIsSwift | eTypeIsPointer) &&
static_type_flags.AllClear(eTypeIsGenericTypeParam)) {
// FIXME: This branch is not covered by any testcases in the test suite.
if (is_indirect_enum_case || static_type_flags.AllClear(eTypeIsBuiltIn))
return Value::eValueTypeLoadAddress;
}
}

// Enabling this makes the inout_variables test hang.
Expand Down

0 comments on commit dc55182

Please sign in to comment.