[cfe-commits] r90585 - /cfe/trunk/lib/Analysis/AnalysisContext.cpp
Ted Kremenek
kremenek at apple.com
Fri Dec 4 12:34:56 PST 2009
Author: kremenek
Date: Fri Dec 4 14:34:55 2009
New Revision: 90585
URL: http://llvm.org/viewvc/llvm-project?rev=90585&view=rev
Log:
Teach AnalysisContext::getBody() about BlockDecls.
Modified:
cfe/trunk/lib/Analysis/AnalysisContext.cpp
Modified: cfe/trunk/lib/Analysis/AnalysisContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/AnalysisContext.cpp?rev=90585&r1=90584&r2=90585&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/AnalysisContext.cpp (original)
+++ cfe/trunk/lib/Analysis/AnalysisContext.cpp Fri Dec 4 14:34:55 2009
@@ -36,6 +36,8 @@
return FD->getBody();
else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D))
return MD->getBody();
+ else if (const BlockDecl *BD = dyn_cast<BlockDecl>(D))
+ return BD->getBody();
llvm::llvm_unreachable("unknown code decl");
}
More information about the cfe-commits
mailing list