[Lldb-commits] [lldb] r343180 - [target] Fix typo and give bool a default value
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 26 23:59:16 PDT 2018
Author: jdevlieghere
Date: Wed Sep 26 23:59:15 2018
New Revision: 343180
URL: http://llvm.org/viewvc/llvm-project?rev=343180&view=rev
Log:
[target] Fix typo and give bool a default value
This addresses Stella's review feedback in D51859.
Modified:
lldb/trunk/source/Target/Target.cpp
Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=343180&r1=343179&r2=343180&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Wed Sep 26 23:59:15 2018
@@ -1446,20 +1446,20 @@ void Target::SetExecutableModule(ModuleS
FileSpecList dependent_files;
ObjectFile *executable_objfile = executable_sp->GetObjectFile();
- bool load_dependens;
+ bool load_dependents = true;
switch (load_dependent_files) {
case eLoadDependentsDefault:
- load_dependens = executable_sp->IsExecutable();
+ load_dependents = executable_sp->IsExecutable();
break;
case eLoadDependentsYes:
- load_dependens = true;
+ load_dependents = true;
break;
case eLoadDependentsNo:
- load_dependens = false;
+ load_dependents = false;
break;
}
- if (executable_objfile && load_dependens) {
+ if (executable_objfile && load_dependents) {
executable_objfile->GetDependentModules(dependent_files);
for (uint32_t i = 0; i < dependent_files.GetSize(); i++) {
FileSpec dependent_file_spec(
More information about the lldb-commits
mailing list