diff options
author | Sean Callanan <scallanan@apple.com> | 2013-03-12 21:22:00 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-03-12 21:22:00 +0000 |
commit | 34cf820b8aa794a050f1aeb0ba1dea51d0bd4de7 (patch) | |
tree | 6a2dac2b58fdc041f4d07ff4bdbd6e2258762bae /lldb/source/Expression/ClangExpressionDeclMap.cpp | |
parent | 90774f3c8f900e6276fca0a8dbd97dc166cbe14e (diff) | |
download | bcm5719-llvm-34cf820b8aa794a050f1aeb0ba1dea51d0bd4de7.tar.gz bcm5719-llvm-34cf820b8aa794a050f1aeb0ba1dea51d0bd4de7.zip |
Switch from CreateTypeSourceInfo, which allocates
uninitialized memory, to getTrivialTypeSourceInfo,
which initializes its memory, when creating trivial
TypeSourceInfos.
<rdar://problem/13332253>
llvm-svn: 176899
Diffstat (limited to 'lldb/source/Expression/ClangExpressionDeclMap.cpp')
-rw-r--r-- | lldb/source/Expression/ClangExpressionDeclMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/ClangExpressionDeclMap.cpp b/lldb/source/Expression/ClangExpressionDeclMap.cpp index e747f5b56f0..3dab8339390 100644 --- a/lldb/source/Expression/ClangExpressionDeclMap.cpp +++ b/lldb/source/Expression/ClangExpressionDeclMap.cpp @@ -2762,7 +2762,7 @@ ClangExpressionDeclMap::FindExternalVisibleDecls (NameSearchContext &context, if (!class_type.IsValid()) return; - TypeSourceInfo *type_source_info = m_ast_context->CreateTypeSourceInfo(QualType::getFromOpaquePtr(class_type.GetOpaqueQualType())); + TypeSourceInfo *type_source_info = m_ast_context->getTrivialTypeSourceInfo(QualType::getFromOpaquePtr(class_type.GetOpaqueQualType())); if (!type_source_info) return; |