Switch from static_cast<> to cast<>, update identifier for coding conventions; NFC.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 21 Dec 2018 21:11:36 +0000 (21:11 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 21 Dec 2018 21:11:36 +0000 (21:11 +0000)
llvm-svn: 349955

clang/lib/Sema/SemaStmt.cpp

index cc3c25c..47130cf 100644 (file)
@@ -469,11 +469,9 @@ Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal,
 }
 
 /// ActOnCaseStmtBody - This installs a statement as the body of a case.
-void Sema::ActOnCaseStmtBody(Stmt *caseStmt, Stmt *SubStmt) {
+void Sema::ActOnCaseStmtBody(Stmt *S, Stmt *SubStmt) {
   DiagnoseUnusedExprResult(SubStmt);
-
-  auto *CS = static_cast<CaseStmt *>(caseStmt);
-  CS->setSubStmt(SubStmt);
+  cast<CaseStmt>(S)->setSubStmt(SubStmt);
 }
 
 StmtResult