diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-02-03 05:34:10 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-02-03 05:34:10 +0000 |
| commit | 9a142cf84d9f859a7e6020fc7d99af0789751784 (patch) | |
| tree | 70bc038e7559130cb98fe75d632eee2763f0d6df /lldb/source/API/SBValue.cpp | |
| parent | ccb673659a61faee2b9bbe3a4ab109c0b53f3f01 (diff) | |
| download | bcm5719-llvm-9a142cf84d9f859a7e6020fc7d99af0789751784.tar.gz bcm5719-llvm-9a142cf84d9f859a7e6020fc7d99af0789751784.zip | |
Fixed casting in the lldb::SBValue::Cast(SBType) function.
llvm-svn: 149673
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index 96182e37428..58a718bdebc 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -378,8 +378,8 @@ lldb::SBValue SBValue::Cast (SBType type) { lldb::SBValue sb_value; - if (m_opaque_sp) - sb_value = CreateChildAtOffset(m_opaque_sp->GetName().GetCString(), 0, type); + if (m_opaque_sp && type.IsValid()) + *sb_value = m_opaque_sp->Cast(type.ref().GetClangASTType()); return sb_value; } |

