commit | 57420b4ca8a98a4c81b7a55338ad0b6a8d993b4e | [log] [tgz] |
---|---|---|
author | Douglas Gregor <doug.gregor@gmail.com> | Mon May 18 20:51:54 2009 +0000 |
committer | Douglas Gregor <doug.gregor@gmail.com> | Mon May 18 20:51:54 2009 +0000 |
tree | 59e3a7c999c53d076923cfe50fcbcf4b3744cf51 | |
parent | 2dfa87acdb71a941656b0c86446374df67136535 [diff] [blame] |
Template instantiation for C++ try/catch statements. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72035 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 71103b8..b2fadb1 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp
@@ -564,7 +564,7 @@ QualType CXXCatchStmt::getCaughtType() { if (ExceptionDecl) - return llvm::cast<VarDecl>(ExceptionDecl)->getType(); + return ExceptionDecl->getType(); return QualType(); }