[AMDGPU] Drop unnecessary const from a return type (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 13 Feb 2021 07:44:31 +0000 (23:44 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 13 Feb 2021 07:44:32 +0000 (23:44 -0800)
Identified with readability-const-return-type.

llvm/lib/Target/AMDGPU/GCNRegPressure.h

index ba8c85a..8541c7e 100644 (file)
@@ -160,7 +160,7 @@ class GCNDownwardRPTracker : public GCNRPTracker {
 public:
   GCNDownwardRPTracker(const LiveIntervals &LIS_) : GCNRPTracker(LIS_) {}
 
-  const MachineBasicBlock::const_iterator getNext() const { return NextMI; }
+  MachineBasicBlock::const_iterator getNext() const { return NextMI; }
 
   // Reset tracker to the point before the MI
   // filling live regs upon this point using LIS.