From: Zachary Turner Date: Thu, 20 Sep 2018 17:48:44 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: llvmorg-8.0.0-rc1~8310 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68f0eeff83985a767e2e26522f8978d90ae858a6;p=platform%2Fupstream%2Fllvm.git Fix warnings. llvm-svn: 342670 --- diff --git a/llvm/include/llvm/DebugInfo/PDB/Native/TpiHashing.h b/llvm/include/llvm/DebugInfo/PDB/Native/TpiHashing.h index 5c98be1..c2996cc 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Native/TpiHashing.h +++ b/llvm/include/llvm/DebugInfo/PDB/Native/TpiHashing.h @@ -21,19 +21,19 @@ Expected hashTypeRecord(const llvm::codeview::CVType &Type); struct TagRecordHash { explicit TagRecordHash(codeview::ClassRecord CR, uint32_t Full, uint32_t Forward) - : Class(std::move(CR)), FullRecordHash(Full), ForwardDeclHash(Forward) { + : FullRecordHash(Full), ForwardDeclHash(Forward), Class(std::move(CR)) { State = 0; } explicit TagRecordHash(codeview::EnumRecord ER, uint32_t Full, uint32_t Forward) - : Enum(std::move(ER)), FullRecordHash(Full), ForwardDeclHash(Forward) { + : FullRecordHash(Full), ForwardDeclHash(Forward), Enum(std::move(ER)) { State = 1; } explicit TagRecordHash(codeview::UnionRecord UR, uint32_t Full, uint32_t Forward) - : Union(std::move(UR)), FullRecordHash(Full), ForwardDeclHash(Forward) { + : FullRecordHash(Full), ForwardDeclHash(Forward), Union(std::move(UR)) { State = 2; } diff --git a/llvm/lib/DebugInfo/PDB/Native/TpiStream.cpp b/llvm/lib/DebugInfo/PDB/Native/TpiStream.cpp index de0f888..311c385 100644 --- a/llvm/lib/DebugInfo/PDB/Native/TpiStream.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/TpiStream.cpp @@ -200,7 +200,6 @@ TpiStream::findFullDeclForForwardRef(TypeIndex ForwardRefTI) const { if (!ForwardTRH) return ForwardTRH.takeError(); - TagRecordHash Copy = std::move(*ForwardTRH); uint32_t BucketIdx = ForwardTRH->FullRecordHash % Header->NumHashBuckets; for (TypeIndex TI : HashMap[BucketIdx]) {