[Lldb-commits] [lldb] r167008 - /lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Carlo Kok
ck at remobjects.com
Tue Oct 30 00:10:29 PDT 2012
Author: carlokok
Date: Tue Oct 30 02:10:28 2012
New Revision: 167008
URL: http://llvm.org/viewvc/llvm-project?rev=167008&view=rev
Log:
Address of element fails on Windows with an assert/abort if there are no entries in the list.
Modified:
lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Modified: lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp?rev=167008&r1=167007&r2=167008&view=diff
==============================================================================
--- lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp (original)
+++ lldb/branches/windows/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp Tue Oct 30 02:10:28 2012
@@ -5900,7 +5900,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.size() == 0 ? NULL : &function_param_types[0],
function_param_types.size(),
is_variadic,
type_quals);
More information about the lldb-commits
mailing list