[cfe-commits] r164557 - /cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp

Ted Kremenek kremenek at apple.com
Mon Sep 24 14:17:14 PDT 2012


Author: kremenek
Date: Mon Sep 24 16:17:14 2012
New Revision: 164557

URL: http://llvm.org/viewvc/llvm-project?rev=164557&view=rev
Log:
Add clarifying comment.

Modified:
    cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp

Modified: cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp?rev=164557&r1=164556&r2=164557&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp (original)
+++ cfe/trunk/lib/Analysis/AnalysisDeclContext.cpp Mon Sep 24 16:17:14 2012
@@ -218,6 +218,8 @@
 
 AnalysisDeclContext *AnalysisDeclContextManager::getContext(const Decl *D) {
   if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
+    // Calling 'hasBody' replaces 'FD' in place with the FunctionDecl
+    // that has the body.
     FD->hasBody(FD);
     D = FD;
   }





More information about the cfe-commits mailing list