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 | 46a572b871de239cb8904bb124418a64edd6adcb (patch) | |
tree | f2504834f79b9e6a1c4e07d0c92edb738f497417 /clang/lib/Frontend/RewriteObjC.cpp | |
parent | d984815ed938acc3980999fbde9efee4294acc52 (diff) | |
download | bcm5719-llvm-46a572b871de239cb8904bb124418a64edd6adcb.tar.gz bcm5719-llvm-46a572b871de239cb8904bb124418a64edd6adcb.zip |
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.
llvm-svn: 102341
Diffstat (limited to 'clang/lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index 5f3b27201f5..a1cbb324c49 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/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 |