diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-08-05 16:02:02 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-08-05 16:02:02 +0000 |
commit | 74ef34f2be7aa36d15ea4de89b08b1eef9a16676 (patch) | |
tree | 2a574f5548b7390124e9451931720b37d5e5da31 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | e42ddb9ad32ec31d03fddb8678c369244843d813 (diff) | |
download | bcm5719-llvm-74ef34f2be7aa36d15ea4de89b08b1eef9a16676.tar.gz bcm5719-llvm-74ef34f2be7aa36d15ea4de89b08b1eef9a16676.zip |
[analyzer] Clarify that r187624 is a hack and should be fixed better later.
Tracked by <rdar://problem/14648821>.
llvm-svn: 187729
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index aaa8c8d0ca0..2123a451811 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -3205,6 +3205,9 @@ void BugReporter::emitReport(BugReport* R) { // Defensive checking: throw the bug away if it comes from a BodyFarm- // generated body. We do this very early because report processing relies // on the report's location being valid. + // FIXME: Valid bugs can occur in BodyFarm-generated bodies, so really we + // need to just find a reasonable location like we do later on with the path + // pieces. if (const ExplodedNode *E = R->getErrorNode()) { const LocationContext *LCtx = E->getLocationContext(); if (LCtx->getAnalysisDeclContext()->isBodyAutosynthesized()) |