aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-10-22 06:51:08 -0700
committerGitHub <noreply@github.com>2025-10-22 06:51:08 -0700
commit6bee6b2090a7cd0dedbc0af789a7cb4648e974f2 (patch)
tree82092f40a41be2e1c9a1304d8ce28ceef8435f93 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentd5a2047c58b428e848d1a540430cbb46d38e2b97 (diff)
downloadllvm-6bee6b2090a7cd0dedbc0af789a7cb4648e974f2.zip
llvm-6bee6b2090a7cd0dedbc0af789a7cb4648e974f2.tar.gz
llvm-6bee6b2090a7cd0dedbc0af789a7cb4648e974f2.tar.bz2
[CodeGen] Add "override" where appropriate (NFC) (#164571)
Note that "override" makes "virtual" redundant. Identified with modernize-use-override.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 1cb57a4..ba0b025 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -1137,7 +1137,7 @@ public:
MF.setDelegate(this);
}
- ~SlotIndexUpdateDelegate() {
+ ~SlotIndexUpdateDelegate() override {
MF.resetDelegate(this);
for (auto MI : Insertions)
Indexes->insertMachineInstrInMaps(*MI);