aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstrBundle.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-03-20 23:11:06 -0700
committerKazu Hirata <kazu@google.com>2022-03-20 23:11:06 -0700
commit1eada2adda8f6e31a5290dd17706cf617a483975 (patch)
tree97d4c066d6e71f453de5ae488d3671da172b68b2 /llvm/lib/CodeGen/MachineInstrBundle.cpp
parent4b28980772402cab998e2c42e4876d6decb48583 (diff)
downloadllvm-1eada2adda8f6e31a5290dd17706cf617a483975.zip
llvm-1eada2adda8f6e31a5290dd17706cf617a483975.tar.gz
llvm-1eada2adda8f6e31a5290dd17706cf617a483975.tar.bz2
[CodeGen] Apply clang-tidy fixes for readability-redundant-smartptr-get (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstrBundle.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstrBundle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstrBundle.cpp b/llvm/lib/CodeGen/MachineInstrBundle.cpp
index 9bf21c0..2f1d7b9 100644
--- a/llvm/lib/CodeGen/MachineInstrBundle.cpp
+++ b/llvm/lib/CodeGen/MachineInstrBundle.cpp
@@ -110,7 +110,7 @@ bool FinalizeMachineBundles::runOnMachineFunction(MachineFunction &MF) {
static DebugLoc getDebugLoc(MachineBasicBlock::instr_iterator FirstMI,
MachineBasicBlock::instr_iterator LastMI) {
for (auto MII = FirstMI; MII != LastMI; ++MII)
- if (MII->getDebugLoc().get())
+ if (MII->getDebugLoc())
return MII->getDebugLoc();
return DebugLoc();
}