Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Werror build #1906

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/PowerPC/PPCDisassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,13 @@ static DecodeStatus DecodeCRRCRegisterClass(MCInst *Inst, uint64_t RegNo,
return decodeRegisterClass(Inst, RegNo, CRRegs, sizeof(CRRegs));
}

#if 0
static DecodeStatus DecodeCRRC0RegisterClass(MCInst *Inst, uint64_t RegNo,
uint64_t Address, const void *Decoder)
{
return decodeRegisterClass(Inst, RegNo, CRRegs, sizeof(CRRegs));
}
#endif

static DecodeStatus DecodeCRBITRCRegisterClass(MCInst *Inst, uint64_t RegNo,
uint64_t Address, const void *Decoder)
Expand Down
1 change: 1 addition & 0 deletions arch/PowerPC/PPCGenDisassemblerTables.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4925,6 +4925,7 @@ static const uint8_t DecoderTableSPE32[] = {
static bool checkDecoderPredicate(unsigned Idx, MCInst *MI)
{
/* llvm_unreachable("Invalid index!");*/
return false;
}

#define DecodeToMCInst(fname, fieldname, InsnType) \
Expand Down