[cfe-commits] r57208 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Ted Kremenek
kremenek at apple.com
Mon Oct 6 13:58:56 PDT 2008
Author: kremenek
Date: Mon Oct 6 15:58:56 2008
New Revision: 57208
URL: http://llvm.org/viewvc/llvm-project?rev=57208&view=rev
Log:
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of a @catch statement.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=57208&r1=57207&r2=57208&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Mon Oct 6 15:58:56 2008
@@ -1552,7 +1552,7 @@
if (!CatchParam) {
AllMatched = true;
} else {
- VD = cast<VarDecl>(CatchParam->getDecl());
+ VD = cast<VarDecl>(CatchParam->getSolitaryDecl());
PT = VD->getType()->getAsPointerType();
// catch(id e) always matches.
More information about the cfe-commits
mailing list