[llvm] 07dfa61 - [LoongArch] Fix a typo in getVariantKindName (NFC) (#79567)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 28 19:15:15 PST 2024
Author: ZhaoQi
Date: 2024-01-29T11:15:11+08:00
New Revision: 07dfa61ace272fc5fc7f486cf42a3d603c8c21f5
URL: https://github.com/llvm/llvm-project/commit/07dfa61ace272fc5fc7f486cf42a3d603c8c21f5
DIFF: https://github.com/llvm/llvm-project/commit/07dfa61ace272fc5fc7f486cf42a3d603c8c21f5.diff
LOG: [LoongArch] Fix a typo in getVariantKindName (NFC) (#79567)
Looks like a slip of the pen.
Added:
Modified:
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCExpr.cpp
Removed:
################################################################################
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:
More information about the llvm-commits
mailing list