[llvm] [CodeGen][NFC] Update a comment. (PR #180531)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 06:35:16 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-regalloc
Author: Mikhail Gudim (mgudim)
<details>
<summary>Changes</summary>
Since a register can represent a negative frame index, remove "non-negative" from the comment.
---
Full diff: https://github.com/llvm/llvm-project/pull/180531.diff
1 Files Affected:
- (modified) llvm/include/llvm/CodeGen/Register.h (+1-1)
``````````diff
diff --git a/llvm/include/llvm/CodeGen/Register.h b/llvm/include/llvm/CodeGen/Register.h
index f375af5808d1c..3bc781b3f0fe0 100644
--- a/llvm/include/llvm/CodeGen/Register.h
+++ b/llvm/include/llvm/CodeGen/Register.h
@@ -47,7 +47,7 @@ class Register {
return Register::StackSlotZero <= Reg && Reg < Register::VirtualRegFlag;
}
- /// Convert a non-negative frame index to a stack slot register value.
+ /// Convert a frame index to a stack slot register value.
static Register index2StackSlot(int FI) {
assert(isInt<MaxFrameIndexBitwidth>(FI) &&
"Frame index must be at most 30 bits.");
``````````
</details>
https://github.com/llvm/llvm-project/pull/180531
More information about the llvm-commits
mailing list