Skip to content

Commit b1cb186

Browse files
committed
Disable loading scalars as addresses when materializing an entity variable
1 parent 03a20a7 commit b1cb186

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lldb/source/Expression/Materializer.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,16 +412,14 @@ class EntityVariable : public Materializer::Entity {
412412
public:
413413
EntityVariable(lldb::VariableSP &variable_sp)
414414
: Entity(), m_variable_sp(variable_sp), m_is_reference(false),
415-
m_is_generic(false), m_temporary_allocation(LLDB_INVALID_ADDRESS),
415+
m_temporary_allocation(LLDB_INVALID_ADDRESS),
416416
m_temporary_allocation_size(0) {
417417
// Hard-coding to maximum size of a pointer since all variables are
418418
// materialized by reference
419419
m_size = 8;
420420
m_alignment = 8;
421421
m_is_reference =
422422
m_variable_sp->GetType()->GetForwardCompilerType().IsReferenceType();
423-
m_is_generic = SwiftASTContext::IsGenericType(
424-
m_variable_sp->GetType()->GetForwardCompilerType());
425423
}
426424

427425
void Materialize(lldb::StackFrameSP &frame_sp, IRMemoryMap &map,
@@ -793,7 +791,6 @@ class EntityVariable : public Materializer::Entity {
793791
private:
794792
lldb::VariableSP m_variable_sp;
795793
bool m_is_reference;
796-
bool m_is_generic;
797794
lldb::addr_t m_temporary_allocation;
798795
size_t m_temporary_allocation_size;
799796
lldb::DataBufferSP m_original_data;

0 commit comments

Comments
 (0)