projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2c6af7
)
Switch from static_cast<> to cast<>, update identifier for coding conventions; NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Fri, 21 Dec 2018 21:11:36 +0000
(21:11 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Fri, 21 Dec 2018 21:11:36 +0000
(21:11 +0000)
llvm-svn: 349955
clang/lib/Sema/SemaStmt.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaStmt.cpp
b/clang/lib/Sema/SemaStmt.cpp
index
cc3c25c
..
47130cf
100644
(file)
--- a/
clang/lib/Sema/SemaStmt.cpp
+++ b/
clang/lib/Sema/SemaStmt.cpp
@@
-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