summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r--clang/lib/AST/Stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 71103b83e3c..b2fadb1834f 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/lib/AST/Stmt.cpp
@@ -564,7 +564,7 @@ Stmt::child_iterator CXXCatchStmt::child_end() {
QualType CXXCatchStmt::getCaughtType() {
if (ExceptionDecl)
- return llvm::cast<VarDecl>(ExceptionDecl)->getType();
+ return ExceptionDecl->getType();
return QualType();
}
OpenPOWER on IntegriCloud