[Lldb-commits] [lldb] r219769 - Make sure is_indirect local var is initialized; there
Jason Molenda
jmolenda at apple.com
Tue Oct 14 20:05:38 PDT 2014
Author: jmolenda
Date: Tue Oct 14 22:05:38 2014
New Revision: 219769
URL: http://llvm.org/viewvc/llvm-project?rev=219769&view=rev
Log:
Make sure is_indirect local var is initialized; there
exists a code path where it could be used while uninitialized.
clang static analyzer fixit.
Modified:
lldb/trunk/source/Symbol/Symbol.cpp
Modified: lldb/trunk/source/Symbol/Symbol.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Symbol.cpp?rev=219769&r1=219768&r2=219769&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Symbol.cpp (original)
+++ lldb/trunk/source/Symbol/Symbol.cpp Tue Oct 14 22:05:38 2014
@@ -626,7 +626,7 @@ Symbol::ResolveCallableAddress(Target &t
Address func_so_addr;
- bool is_indirect;
+ bool is_indirect = IsIndirect();
if (GetType() == eSymbolTypeReExported)
{
Symbol *reexported_symbol = ResolveReExportedSymbol(target);
More information about the lldb-commits
mailing list