[llvm] 9d64af9 - [M68k] Fix -Winconsistent-missing-override after #115756
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 18:03:05 PST 2024
Author: Fangrui Song
Date: 2024-12-06T18:03:00-08:00
New Revision: 9d64af9e52707cf548bf767e0010fc82feed4831
URL: https://github.com/llvm/llvm-project/commit/9d64af9e52707cf548bf767e0010fc82feed4831
DIFF: https://github.com/llvm/llvm-project/commit/9d64af9e52707cf548bf767e0010fc82feed4831.diff
LOG: [M68k] Fix -Winconsistent-missing-override after #115756
Added:
Modified:
llvm/lib/Target/M68k/M68kSubtarget.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/M68k/M68kSubtarget.h b/llvm/lib/Target/M68k/M68kSubtarget.h
index 3fbec2f72fb861..c08a9786fb27ba 100644
--- a/llvm/lib/Target/M68k/M68kSubtarget.h
+++ b/llvm/lib/Target/M68k/M68kSubtarget.h
@@ -107,7 +107,7 @@ class M68kSubtarget : public M68kGenSubtargetInfo {
bool isPositionIndependent() const;
- bool isRegisterReservedByUser(Register R) const {
+ bool isRegisterReservedByUser(Register R) const override {
assert(R < M68k::NUM_TARGET_REGS && "Register out of range");
return UserReservedRegister[R];
}
More information about the llvm-commits
mailing list