-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[NFC][MC] Removed unused switch case in emitCATTR
#152907
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
Conversation
The switch statement `switch (Rmode)` is in an if-block that checks if `Rmode != GOFF::ESD_RMODE_None` making the `case GOFF::ESD_RMODE_None:` unnecessary.
@llvm/pr-subscribers-mc Author: Abhishek Kaushik (abhishek-kaushik22) ChangesThe switch statement Full diff: https://github.com/llvm/llvm-project/pull/152907.diff 1 Files Affected:
diff --git a/llvm/lib/MC/MCAsmInfoGOFF.cpp b/llvm/lib/MC/MCAsmInfoGOFF.cpp
index 0a5d1927b1a22..d35020429e346 100644
--- a/llvm/lib/MC/MCAsmInfoGOFF.cpp
+++ b/llvm/lib/MC/MCAsmInfoGOFF.cpp
@@ -71,8 +71,6 @@ static void emitCATTR(raw_ostream &OS, StringRef Name, GOFF::ESDRmode Rmode,
case GOFF::ESD_RMODE_64:
OS << "64";
break;
- case GOFF::ESD_RMODE_None:
- break;
}
OS << ')';
}
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/11470 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/21299 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/17741 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/13996 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/15083 Here is the relevant piece of the build log for the reference
|
Sorry, I was probably using a |
…`" (#152929) Reverts llvm/llvm-project#152907 This is causing some build failures.
The switch statement
switch (Rmode)
is in an if-block that checks ifRmode != GOFF::ESD_RMODE_None
making thecase GOFF::ESD_RMODE_None:
unnecessary.