forked from OSchip/llvm-project
Cleanup some dead assignements reported by scan-build
No functionnal change. llvm-svn: 204545
This commit is contained in:
parent
44419fc3cd
commit
62e5f4de3d
|
@ -277,8 +277,6 @@ CommandObjectExpression::EvaluateExpression
|
|||
{
|
||||
lldb::ValueObjectSP result_valobj_sp;
|
||||
|
||||
ExecutionResults exe_results;
|
||||
|
||||
bool keep_in_memory = true;
|
||||
|
||||
EvaluateExpressionOptions options;
|
||||
|
@ -294,11 +292,9 @@ CommandObjectExpression::EvaluateExpression
|
|||
options.SetTimeoutUsec(m_command_options.timeout);
|
||||
else
|
||||
options.SetTimeoutUsec(0);
|
||||
|
||||
exe_results = target->EvaluateExpression (expr,
|
||||
exe_ctx.GetFramePtr(),
|
||||
result_valobj_sp,
|
||||
options);
|
||||
|
||||
target->EvaluateExpression(expr, exe_ctx.GetFramePtr(),
|
||||
result_valobj_sp, options);
|
||||
|
||||
if (result_valobj_sp)
|
||||
{
|
||||
|
|
|
@ -2707,8 +2707,6 @@ protected:
|
|||
}
|
||||
else
|
||||
{
|
||||
flush = true;
|
||||
|
||||
StreamString strm;
|
||||
module_spec.GetUUID().Dump (&strm);
|
||||
if (module_spec.GetFileSpec())
|
||||
|
|
|
@ -959,7 +959,7 @@ Module::FindTypes (const SymbolContext& sc,
|
|||
{
|
||||
// The "type_name_cstr" will have been modified if we have a valid type class
|
||||
// prefix (like "struct", "class", "union", "typedef" etc).
|
||||
num_matches = FindTypes_Impl(sc, ConstString(type_name_cstr), NULL, append, max_matches, types);
|
||||
FindTypes_Impl(sc, ConstString(type_name_cstr), NULL, append, max_matches, types);
|
||||
types.RemoveMismatchedTypes (type_class);
|
||||
num_matches = types.GetSize();
|
||||
}
|
||||
|
|
|
@ -1993,7 +1993,6 @@ IRForTarget::ReplaceStaticLiterals (llvm::BasicBlock &basic_block)
|
|||
const size_t mask = (align - 1);
|
||||
uint64_t aligned_offset = (offset + mask) & ~mask;
|
||||
m_data_allocator.GetStream().PutNHex8(aligned_offset - offset, 0);
|
||||
offset = aligned_offset;
|
||||
|
||||
m_data_allocator.GetStream().Write(data.GetBytes(), operand_data_size);
|
||||
|
||||
|
|
|
@ -1357,7 +1357,6 @@ ObjectFileELF::ParseSymbolTable(Symtab *symbol_table, user_id_t start_id, lldb_p
|
|||
user_id_t strtab_id = symtab_hdr->sh_link + 1;
|
||||
Section *strtab = section_list->FindSectionByID(strtab_id).get();
|
||||
|
||||
unsigned num_symbols = 0;
|
||||
if (symtab && strtab)
|
||||
{
|
||||
assert (symtab->GetObjectFile() == this);
|
||||
|
@ -1370,13 +1369,12 @@ ObjectFileELF::ParseSymbolTable(Symtab *symbol_table, user_id_t start_id, lldb_p
|
|||
{
|
||||
size_t num_symbols = symtab_data.GetByteSize() / symtab_hdr->sh_entsize;
|
||||
|
||||
num_symbols = ParseSymbols(symbol_table, start_id,
|
||||
section_list, num_symbols,
|
||||
symtab_data, strtab_data);
|
||||
return ParseSymbols(symbol_table, start_id, section_list,
|
||||
num_symbols, symtab_data, strtab_data);
|
||||
}
|
||||
}
|
||||
|
||||
return num_symbols;
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
|
@ -232,7 +232,6 @@ ObjectFilePECOFF::SetLoadAddress(Target &target, addr_t value, bool value_is_off
|
|||
}
|
||||
}
|
||||
changed = num_loaded_sections > 0;
|
||||
return num_loaded_sections > 0;
|
||||
}
|
||||
}
|
||||
return changed;
|
||||
|
|
|
@ -452,8 +452,6 @@ protected:
|
|||
error_sp->PutCString (err_str);
|
||||
error_sp->EOL();
|
||||
error_sp->Flush();
|
||||
// If the condition fails to be parsed or run, we should stop.
|
||||
condition_says_stop = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue