diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-29 23:29:12 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-06-29 23:29:12 +0000 |
| commit | 96d071cd0ccc53bbf94bcd6ed4b52c9006b17e15 (patch) | |
| tree | 23fbac45fb7ee7c71bcb7d3207e4ee6bea0c14b4 /llvm/lib/DebugInfo/DWARF | |
| parent | 79cfd437b5fcb71d4b748831db888c700231c0c4 (diff) | |
| download | bcm5719-llvm-96d071cd0ccc53bbf94bcd6ed4b52c9006b17e15.tar.gz bcm5719-llvm-96d071cd0ccc53bbf94bcd6ed4b52c9006b17e15.zip | |
Don't return error_code from function that never fails.
llvm-svn: 241021
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index 32654f830f0..b63d4326b16 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -667,8 +667,7 @@ DWARFContextInMemory::DWARFContextInMemory(const object::ObjectFile &Obj, if (Section.relocation_begin() != Section.relocation_end()) { uint64_t SectionSize = RelocatedSection->getSize(); for (const RelocationRef &Reloc : Section.relocations()) { - uint64_t Address; - Reloc.getOffset(Address); + uint64_t Address = Reloc.getOffset(); uint64_t Type; Reloc.getType(Type); uint64_t SymAddr = 0; |

