Skip to content

Commit

Permalink
Fix missing return warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Apr 10, 2024
1 parent 2212696 commit a33678e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/AArch64/AArch64BaseInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ inline static const char *AArch64PACKeyIDToString(AArch64PACKey_ID KeyID)
case AArch64PACKey_DB:
return "db";
}
return NULL;
}

/// Return numeric key ID for 2-letter identifier string.
Expand All @@ -867,6 +868,7 @@ AArch64StringToPACKeyID(const char *Name)
if (strcmp(Name, "db") == 0)
return AArch64PACKey_DB;
assert(0 && "Invalid PAC key");
return AArch64PACKey_LAST;
}

// end namespace AArch64
Expand Down
2 changes: 1 addition & 1 deletion arch/AArch64/AArch64GenAsmWriter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -33535,7 +33535,7 @@ static bool AArch64InstPrinterValidateMCOperand(const MCOperand *MCOp,
switch (PredicateIndex) {
default:
assert(0 && "Unknown MCOperandPredicate kind");
break;
return false;
case 1: {

if (!MCOperand_isImm(MCOp))
Expand Down

0 comments on commit a33678e

Please sign in to comment.