[llvm] [LoongArch] Fix a typo in getVariantKindName (NFC) (PR #79567)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 26 02:04:24 PST 2024
https://github.com/zhaoqi5 created https://github.com/llvm/llvm-project/pull/79567
Looks like a slip of the pen.
>From df8b1e31f2f9eb47bf4f18d6b15524b9132d9dd1 Mon Sep 17 00:00:00 2001
From: zhaoqi <zhaoqi01 at loongson.cn>
Date: Fri, 26 Jan 2024 09:19:51 +0800
Subject: [PATCH] [LoongArch] Fix a typo in getVariantKindName (NFC)
Looks like a slip of the pen.
---
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp
index 8ca8876a19b936f..d6fa3b6e50968c8 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:
More information about the llvm-commits
mailing list