From 951bdd5f4121d406bb043e3c2df0b42b737af263 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 28 Jan 2015 01:09:45 +0000 Subject: Move several GetByteSize() calls over to the brave new world of taking an ExecutionContext* And since enough of these are doing the right thing, add a test case to verify we are doing the right thing with freeze drying ObjC object types Fixes rdar://18092770 llvm-svn: 227282 --- lldb/source/Core/ValueObjectVariable.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/ValueObjectVariable.cpp') diff --git a/lldb/source/Core/ValueObjectVariable.cpp b/lldb/source/Core/ValueObjectVariable.cpp index e4fd212cbfa..ed2aeb3d963 100644 --- a/lldb/source/Core/ValueObjectVariable.cpp +++ b/lldb/source/Core/ValueObjectVariable.cpp @@ -105,12 +105,14 @@ ValueObjectVariable::CalculateNumChildren() uint64_t ValueObjectVariable::GetByteSize() { + ExecutionContext exe_ctx(GetExecutionContextRef()); + ClangASTType type(GetClangType()); if (!type.IsValid()) return 0; - return type.GetByteSize(nullptr); + return type.GetByteSize(&exe_ctx); } lldb::ValueType -- cgit v1.2.3