]> granicus.if.org Git - clang/commitdiff
Add clarifying comment.
authorTed Kremenek <kremenek@apple.com>
Mon, 24 Sep 2012 21:17:14 +0000 (21:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 24 Sep 2012 21:17:14 +0000 (21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164557 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AnalysisDeclContext.cpp

index a4bf8d19b17dfd16569fc18431e2172ae5b2c325..e17090f79991a90c7067c8791b99f0135515e9cf 100644 (file)
@@ -218,6 +218,8 @@ PseudoConstantAnalysis *AnalysisDeclContext::getPseudoConstantAnalysis() {
 
 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;
   }