[Lldb-commits] [lldb] r273649 - Silence a -Wc++11-narrowing warning
David Majnemer via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 23 22:31:23 PDT 2016
Author: majnemer
Date: Fri Jun 24 00:31:23 2016
New Revision: 273649
URL: http://llvm.org/viewvc/llvm-project?rev=273649&view=rev
Log:
Silence a -Wc++11-narrowing warning
Modified:
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=273649&r1=273648&r2=273649&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Fri Jun 24 00:31:23 2016
@@ -7759,7 +7759,7 @@ ClangASTContext::BuildIndirectFields (co
}
else if (clang::IndirectFieldDecl *nested_indirect_field_decl = llvm::dyn_cast<clang::IndirectFieldDecl>(*di))
{
- int nested_chain_size = nested_indirect_field_decl->getChainingSize();
+ size_t nested_chain_size = nested_indirect_field_decl->getChainingSize();
clang::NamedDecl **chain = new (*ast->getASTContext()) clang::NamedDecl*[nested_chain_size + 1];
chain[0] = *field_pos;
More information about the lldb-commits
mailing list