diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-26 16:46:50 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-26 16:46:50 +0000 |
commit | c00d8e18ad3d903acfeb5d05163ce90713066a3f (patch) | |
tree | 3b6657d3c7123fe161c4a4d0c9a4973e16208f1c /lib/Frontend/RewriteObjC.cpp | |
parent | 087fb7d0b5e08f34b2e28a09c376f66449f30886 (diff) |
Make the static type of the exception variable in an Objective-C
@catch a VarDecl. The dynamic type is still a ParmVarDecl, but that
will change soon. No effective functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 5f3b27201f..a1cbb324c4 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -1881,7 +1881,7 @@ Stmt *RewriteObjC::RewriteObjCTryStmt(ObjCAtTryStmt *S) { Stmt *lastCatchBody = 0; for (unsigned I = 0, N = S->getNumCatchStmts(); I != N; ++I) { ObjCAtCatchStmt *Catch = S->getCatchStmt(I); - ParmVarDecl *catchDecl = Catch->getCatchParamDecl(); + VarDecl *catchDecl = Catch->getCatchParamDecl(); if (I == 0) buf = "if ("; // we are generating code for the first catch clause |