[llvm] [LoongArch] Fix a typo in getVariantKindName (NFC) (PR #79567)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 02:05:00 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-loongarch
Author: ZhaoQi (zhaoqi5)
<details>
<summary>Changes</summary>
Looks like a slip of the pen.
---
Full diff: https://github.com/llvm/llvm-project/pull/79567.diff
1 Files Affected:
- (modified) llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp
index 8ca8876a19b936..d6fa3b6e50968c 100644
--- a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp
+++ b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp
@@ -73,7 +73,7 @@ StringRef LoongArchMCExpr::getVariantKindName(VariantKind Kind) {
case VK_LoongArch_B21:
return "b21";
case VK_LoongArch_B26:
- return "b21";
+ return "b26";
case VK_LoongArch_ABS_HI20:
return "abs_hi20";
case VK_LoongArch_ABS_LO12:
``````````
</details>
https://github.com/llvm/llvm-project/pull/79567
More information about the llvm-commits
mailing list