Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LoongArch] Fix a typo in getVariantKindName (NFC) #79567

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

zhaoqi5
Copy link
Contributor

@zhaoqi5 zhaoqi5 commented Jan 26, 2024

Looks like a slip of the pen.

@llvmbot
Copy link
Collaborator

llvmbot commented Jan 26, 2024

@llvm/pr-subscribers-backend-loongarch

Author: ZhaoQi (zhaoqi5)

Changes

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 --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:

@zhaoqi5
Copy link
Contributor Author

zhaoqi5 commented Jan 26, 2024

@SixWeining Looking forward to your review. Thanks.

@SixWeining SixWeining merged commit 07dfa61 into llvm:main Jan 29, 2024
4 of 5 checks passed
@zhaoqi5 zhaoqi5 deleted the fix-VariantKindName-typo branch January 29, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants