diff options
| author | Ted Kremenek <kremenek@apple.com> | 2012-09-24 21:17:14 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2012-09-24 21:17:14 +0000 |
| commit | 3d0ec38cb4cbd5e2ab67e960674801b553953ab5 (patch) | |
| tree | 5b204e7427f04a44cdaf451b65d758b58f4fe9b0 /clang | |
| parent | 2e0e3f37be30d4be3fc7a490c0d746e8faadc7cc (diff) | |
| download | bcm5719-llvm-3d0ec38cb4cbd5e2ab67e960674801b553953ab5.tar.gz bcm5719-llvm-3d0ec38cb4cbd5e2ab67e960674801b553953ab5.zip | |
Add clarifying comment.
llvm-svn: 164557
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Analysis/AnalysisDeclContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Analysis/AnalysisDeclContext.cpp b/clang/lib/Analysis/AnalysisDeclContext.cpp index a4bf8d19b17..e17090f7999 100644 --- a/clang/lib/Analysis/AnalysisDeclContext.cpp +++ b/clang/lib/Analysis/AnalysisDeclContext.cpp @@ -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; } |

