[llvm] [RISCV][NFC] Fix typo in RISCVIndirectBranchTracking.cpp (PR #157221)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 20:40:28 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-risc-v

Author: Jesse Huang (jaidTw)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/157221.diff


1 Files Affected:

- (modified) llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp (+1-1) 


``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp b/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp
index 43621b8f0f33d..9664ab345dcbf 100644
--- a/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp
+++ b/llvm/lib/Target/RISCV/RISCVIndirectBranchTracking.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// The pass adds LPAD (AUIPC with rs1 = X0) machine instructions at the
+// The pass adds LPAD (AUIPC with rd = X0) machine instructions at the
 // beginning of each basic block or function that is referenced by an indirect
 // jump/call instruction.
 //

``````````

</details>


https://github.com/llvm/llvm-project/pull/157221


More information about the llvm-commits mailing list