OSDN Git Service

PPCInstrInfo: Fix readability-inconsistent-declaration-parameter-name clang-tidy...
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 13 Sep 2020 20:08:17 +0000 (13:08 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 13 Sep 2020 20:08:17 +0000 (13:08 -0700)
Reduces the chance of confusion when calling the function with
autocomplete (will show the more accurate/informative variable name),
etc.

llvm/lib/Target/PowerPC/PPCInstrInfo.h

index 2f867b1..77ee236 100644 (file)
@@ -497,8 +497,9 @@ public:
   /// Get the base operand and byte offset of an instruction that reads/writes
   /// memory.
   bool getMemOperandsWithOffsetWidth(
-      const MachineInstr &MI, SmallVectorImpl<const MachineOperand *> &BaseOps,
-      int64_t &Offset, bool &OffsetIsScalable, unsigned &Width,
+      const MachineInstr &LdSt,
+      SmallVectorImpl<const MachineOperand *> &BaseOps, int64_t &Offset,
+      bool &OffsetIsScalable, unsigned &Width,
       const TargetRegisterInfo *TRI) const override;
 
   /// Returns true if the two given memory operations should be scheduled