summaryrefslogtreecommitdiff
path: root/source/Core/ValueObjectCast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/ValueObjectCast.cpp')
-rw-r--r--source/Core/ValueObjectCast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Core/ValueObjectCast.cpp b/source/Core/ValueObjectCast.cpp
index 4f4f8cc681d02..b20371b128dfe 100644
--- a/source/Core/ValueObjectCast.cpp
+++ b/source/Core/ValueObjectCast.cpp
@@ -102,7 +102,7 @@ ValueObjectCast::UpdateValue ()
//m_value.SetContext (Value::eContextTypeClangType, clang_type);
m_value.SetClangType (clang_type);
SetAddressTypeOfChildren(m_parent->GetAddressTypeOfChildren());
- if (clang_type.IsAggregateType ())
+ if (!CanProvideValue())
{
// this value object represents an aggregate type whose
// children have values, but this object does not. So we