[llvm] 27c7e92 - [RISCV][NFC] Rename variable to appease code style
Fraser Cormack via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 04:57:05 PDT 2022
Author: Fraser Cormack
Date: 2022-05-11T12:41:25+01:00
New Revision: 27c7e922fe612a728286c78f585ed34dfd11e037
URL: https://github.com/llvm/llvm-project/commit/27c7e922fe612a728286c78f585ed34dfd11e037
DIFF: https://github.com/llvm/llvm-project/commit/27c7e922fe612a728286c78f585ed34dfd11e037.diff
LOG: [RISCV][NFC] Rename variable to appease code style
Added:
Modified:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index 87d13aa6f70e..e71de3e32981 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -282,8 +282,8 @@ void RISCVFrameLowering::adjustReg(MachineBasicBlock &MBB,
.setMIFlag(Flag);
} else {
unsigned Opc = RISCV::ADD;
- bool isSub = Val < 0;
- if (isSub) {
+ bool IsSub = Val < 0;
+ if (IsSub) {
Val = -Val;
Opc = RISCV::SUB;
}
More information about the llvm-commits
mailing list