summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/DynamicLoader.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2016-07-17 20:01:54 +0000
committerJason Molenda <jmolenda@apple.com>2016-07-17 20:01:54 +0000
commit5d4102417b654ce0ed447923d02d7d706ab80165 (patch)
treed882861fb92e4e034ee3740c732028ea5b6ebf28 /lldb/source/Core/DynamicLoader.cpp
parent5eb7e1bf18cd8c488d43f88b836a7d913d10cb3b (diff)
downloadbcm5719-llvm-5d4102417b654ce0ed447923d02d7d706ab80165.tar.gz
bcm5719-llvm-5d4102417b654ce0ed447923d02d7d706ab80165.zip
Initialize the "is_loaded" local in LoadModuleAtAddress in
case Process::GetFileLoadAddress fails to set it to a real value. (fixing "conditional use of garbage value" clang warning) llvm-svn: 275731
Diffstat (limited to 'lldb/source/Core/DynamicLoader.cpp')
-rw-r--r--lldb/source/Core/DynamicLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/DynamicLoader.cpp b/lldb/source/Core/DynamicLoader.cpp
index 0edc8c04b28..f41ff4a80c8 100644
--- a/lldb/source/Core/DynamicLoader.cpp
+++ b/lldb/source/Core/DynamicLoader.cpp
@@ -194,7 +194,7 @@ DynamicLoader::LoadModuleAtAddress(const FileSpec &file,
{
// Try to fetch the load address of the file from the process as we need absolute load
// address to read the file out of the memory instead of a load bias.
- bool is_loaded;
+ bool is_loaded = false;
lldb::addr_t load_addr;
Error error = m_process->GetFileLoadAddress(file, is_loaded, load_addr);
if (error.Success() && is_loaded)
OpenPOWER on IntegriCloud