aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorJack Styles <jack.styles@arm.com>2024-10-28 09:08:48 +0000
committerGitHub <noreply@github.com>2024-10-28 09:08:48 +0000
commit933a56674e75ed372e000758378b7981e5b4d387 (patch)
tree0f979ac17422620171bb1f570eac70ed063167cb /llvm/lib/CodeGen/MachineOperand.cpp
parentdff114b3565e4c981fcb40f24f72a0cb426294fe (diff)
downloadllvm-933a56674e75ed372e000758378b7981e5b4d387.zip
llvm-933a56674e75ed372e000758378b7981e5b4d387.tar.gz
llvm-933a56674e75ed372e000758378b7981e5b4d387.tar.bz2
[PAuthLR] Add Missing Break Statement for MachineOperand Switch Statement (#113883)
There was a missing break, which led to an unannotated fallthrough when merging #112171. This has caused sanitizer builds to fail. This adds the missing break in the switch statement to ensure that the fallthrough does not occur.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOperand.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index 620779e..d9e5e9d 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -772,6 +772,7 @@ static void printCFI(raw_ostream &OS, const MCCFIInstruction &CFI,
OS << "negate_ra_sign_state_with_pc ";
if (MCSymbol *Label = CFI.getLabel())
MachineOperand::printSymbol(OS, *Label);
+ break;
default:
// TODO: Print the other CFI Operations.
OS << "<unserializable cfi directive>";