OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d3d5ae
)
Reuse variable. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 6 Aug 2015 14:51:02 +0000
(14:51 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 6 Aug 2015 14:51:02 +0000
(14:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244214
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Object/ELF.h
patch
|
blob
|
history
diff --git
a/include/llvm/Object/ELF.h
b/include/llvm/Object/ELF.h
index
4518ffa
..
46cfee5
100644
(file)
--- a/
include/llvm/Object/ELF.h
+++ b/
include/llvm/Object/ELF.h
@@
-560,8
+560,7
@@
ELFFile<ELFT>::ELFFile(StringRef Object, std::error_code &EC)
// Get string table sections.
uintX_t StringTableIndex = getStringTableIndex();
if (StringTableIndex) {
- ErrorOr<const Elf_Shdr *> StrTabSecOrErr =
- getSection(getStringTableIndex());
+ ErrorOr<const Elf_Shdr *> StrTabSecOrErr = getSection(StringTableIndex);
if ((EC = StrTabSecOrErr.getError()))
return;