[Lldb-commits] [lldb] r167024 - /lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Greg Clayton gclayton at apple.com
Tue Oct 30 10:02:18 PDT 2012


Author: gclayton
Date: Tue Oct 30 12:02:18 2012
New Revision: 167024

URL: http://llvm.org/viewvc/llvm-project?rev=167024&view=rev
Log:
Use the "data()" accessor on the std::vector<clang_type_t> in case it is empty.


Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=167024&r1=167023&r2=167024&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue Oct 30 12:02:18 2012
@@ -5941,7 +5941,7 @@
 
                     // clang_type will get the function prototype clang type after this call
                     clang_type = ast.CreateFunctionType (return_clang_type, 
-                                                         &function_param_types[0], 
+                                                         function_param_types.data(),
                                                          function_param_types.size(), 
                                                          is_variadic, 
                                                          type_quals);





More information about the lldb-commits mailing list