Template instantiation for C++ try/catch statements.

llvm-svn: 72035
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 71103b8..b2fadb1 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/lib/AST/Stmt.cpp
@@ -564,7 +564,7 @@
 
 QualType CXXCatchStmt::getCaughtType() {
   if (ExceptionDecl)
-    return llvm::cast<VarDecl>(ExceptionDecl)->getType();
+    return ExceptionDecl->getType();
   return QualType();
 }