Skip to content

Commit 86ec263

Browse files
committed
[CIR] Fix warning in CIRGenAction.cpp
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 02eaeec commit 86ec263

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/CIR/FrontendAction/CIRGenAction.cpp

Lines changed: 0 additions & 3 deletions
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)