Skip to content

Commit eaa4eb2

Browse files
authoredDec 2, 2024
[CIR] Fix warning in CIRGenAction.cpp (#118389)
Fix a compiler warning in `CIRGenConsumer::HandleTranslationUnit` in `clang/lib/CIR/FrontendAction/CIRGenAction.cpp`. The warning was about a `default:` section in a switch statement that already covered all the values of an enum. Delete the `default:` section.
1 parent f3af593 commit eaa4eb2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed
 

‎clang/lib/CIR/FrontendAction/CIRGenAction.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ class CIRGenConsumer : public clang::ASTConsumer {
6666
MlirModule->print(*OutputStream, Flags);
6767
}
6868
break;
69-
default:
70-
llvm_unreachable("NYI: CIRGenAction other than EmitCIR");
71-
break;
7269
}
7370
}
7471
};

0 commit comments

Comments
 (0)