aboutsummaryrefslogtreecommitdiff
path: root/source/Core/ValueObjectVariable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/ValueObjectVariable.cpp')
-rw-r--r--source/Core/ValueObjectVariable.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Core/ValueObjectVariable.cpp b/source/Core/ValueObjectVariable.cpp
index 38c0d91324ad..3d8b07a36948 100644
--- a/source/Core/ValueObjectVariable.cpp
+++ b/source/Core/ValueObjectVariable.cpp
@@ -156,6 +156,10 @@ ValueObjectVariable::UpdateValue ()
{
m_resolved_value = m_value;
m_value.SetContext(Value::eContextTypeVariable, variable);
+
+ ClangASTType clang_type = GetClangType();
+ if (clang_type.IsValid())
+ m_value.SetClangType(clang_type);
Value::ValueType value_type = m_value.GetValueType();