Skip to content

[MC] Drop const from a return type (NFC) #146196

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

Merged

Conversation

kazutakahirata
Copy link
Contributor

We don't need const on a return type.

We don't need const on a return type.
@llvmbot
Copy link
Member

llvmbot commented Jun 28, 2025

@llvm/pr-subscribers-backend-directx

Author: Kazu Hirata (kazutakahirata)

Changes

We don't need const on a return type.


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

1 Files Affected:

  • (modified) llvm/include/llvm/MC/DXContainerRootSignature.h (+1-1)
diff --git a/llvm/include/llvm/MC/DXContainerRootSignature.h b/llvm/include/llvm/MC/DXContainerRootSignature.h
index 4c2ca063158c4..4b6b42f7d74f7 100644
--- a/llvm/include/llvm/MC/DXContainerRootSignature.h
+++ b/llvm/include/llvm/MC/DXContainerRootSignature.h
@@ -68,7 +68,7 @@ struct RootParametersContainer {
     Tables.push_back(Table);
   }
 
-  const std::pair<uint32_t, uint32_t>
+  std::pair<uint32_t, uint32_t>
   getTypeAndLocForParameter(uint32_t Location) const {
     const RootParameterInfo &Info = ParametersInfo[Location];
     return {Info.Header.ParameterType, Info.Location};

@kazutakahirata kazutakahirata merged commit f90af1c into llvm:main Jun 28, 2025
9 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250627_drop_const_llvm branch June 28, 2025 05:08
rlavaee pushed a commit to rlavaee/llvm-project that referenced this pull request Jul 1, 2025
We don't need const on a return type.
rlavaee pushed a commit to rlavaee/llvm-project that referenced this pull request Jul 1, 2025
We don't need const on a return type.
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.

3 participants