mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Fix warnings.
llvm-svn: 342670
This commit is contained in:
parent
7aa9294d80
commit
7ff8bcc851
@ -21,19 +21,19 @@ Expected<uint32_t> 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;
|
||||
}
|
||||
|
||||
|
@ -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]) {
|
||||
|
Loading…
Reference in New Issue
Block a user