Do not use the same name for both a class and a variable.

llvm-svn: 291835
This commit is contained in:
Rui Ueyama 2017-01-12 21:44:20 +00:00
parent 52be82590c
commit 7aa90ad65b
1 changed files with 3 additions and 3 deletions

View File

@ -130,11 +130,11 @@ typename ELFT::uint InputSectionBase<ELFT>::getOffset(uintX_t Offset) const {
// Uncompress section contents. Note that this function is called
// from parallel_for_each, so it must be thread-safe.
template <class ELFT> void InputSectionBase<ELFT>::uncompress() {
Decompressor Decompressor = check(Decompressor::create(
Decompressor Dec = check(Decompressor::create(
Name, toStringRef(Data), ELFT::TargetEndianness == llvm::support::little,
ELFT::Is64Bits));
size_t Size = Decompressor.getDecompressedSize();
size_t Size = Dec.getDecompressedSize();
char *OutputBuf;
{
static std::mutex Mu;
@ -142,7 +142,7 @@ template <class ELFT> void InputSectionBase<ELFT>::uncompress() {
OutputBuf = BAlloc.Allocate<char>(Size);
}
if (Error E = Decompressor.decompress({OutputBuf, Size}))
if (Error E = Dec.decompress({OutputBuf, Size}))
fatal(toString(this) +
": decompress failed: " + llvm::toString(std::move(E)));
Data = ArrayRef<uint8_t>((uint8_t *)OutputBuf, Size);