Skip to content

[TableGen] Remove redundant control flow statements (NFC) #145143

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
merged 1 commit into from
Jun 21, 2025

Conversation

kazutakahirata
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Jun 21, 2025

@llvm/pr-subscribers-tablegen

Author: Kazu Hirata (kazutakahirata)

Changes

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

1 Files Affected:

  • (modified) llvm/utils/TableGen/Basic/TargetFeaturesEmitter.cpp (-4)
diff --git a/llvm/utils/TableGen/Basic/TargetFeaturesEmitter.cpp b/llvm/utils/TableGen/Basic/TargetFeaturesEmitter.cpp
index f016cc43c0e3e..6b723bc0fb02d 100644
--- a/llvm/utils/TableGen/Basic/TargetFeaturesEmitter.cpp
+++ b/llvm/utils/TableGen/Basic/TargetFeaturesEmitter.cpp
@@ -118,8 +118,6 @@ void TargetFeaturesEmitter::printFeatureKeyValues(
 
   // End feature table.
   OS << "};\n";
-
-  return;
 }
 
 void TargetFeaturesEmitter::printCPUKeyValues(raw_ostream &OS,
@@ -146,8 +144,6 @@ void TargetFeaturesEmitter::printCPUKeyValues(raw_ostream &OS,
 
   // End processor table.
   OS << "};\n";
-
-  return;
 }
 
 void TargetFeaturesEmitter::run(raw_ostream &OS) {

@kazutakahirata kazutakahirata merged commit 981f8e1 into llvm:main Jun 21, 2025
9 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250620_ret branch June 21, 2025 04:55
Jaddyen pushed a commit to Jaddyen/llvm-project that referenced this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants