From 1df9316922a565e8f5c9c9c3533a2a4eb9665a90 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 25 Nov 2016 20:41:45 +0000 Subject: [PATCH] Fix typo. llvm-svn: 287951 --- lld/ELF/InputSection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 9b2feaa..07bb8fd 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -707,13 +707,13 @@ std::vector MergeInputSection::splitStrings(ArrayRef Data, size_t EntSize) { std::vector V; size_t Off = 0; - bool IsAlloca = this->Flags & SHF_ALLOC; + bool IsAlloc = this->Flags & SHF_ALLOC; while (!Data.empty()) { size_t End = findNull(Data, EntSize); if (End == StringRef::npos) fatal(toString(this) + ": string is not null terminated"); size_t Size = End + EntSize; - V.emplace_back(Off, !IsAlloca); + V.emplace_back(Off, !IsAlloc); Hashes.push_back(hash_value(toStringRef(Data.slice(0, Size)))); Data = Data.slice(Size); Off += Size; @@ -740,10 +740,10 @@ MergeInputSection::splitNonStrings(ArrayRef Data, std::vector V; size_t Size = Data.size(); assert((Size % EntSize) == 0); - bool IsAlloca = this->Flags & SHF_ALLOC; + bool IsAlloc = this->Flags & SHF_ALLOC; for (unsigned I = 0, N = Size; I != N; I += EntSize) { Hashes.push_back(hash_value(toStringRef(Data.slice(I, EntSize)))); - V.emplace_back(I, !IsAlloca); + V.emplace_back(I, !IsAlloc); } return V; } -- 2.7.4