summaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-17 06:48:22 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-17 06:48:22 +0000
commitdbfa950abe0e55b173286a306ee620eff5f72ea8 (patch)
treea100b4de7c1b3332cd93550d92b9d6925b0539a0 /lib/StaticAnalyzer/Core/BugReporter.cpp
parent24ce46c8cec99d2e63bed052696e79b6487885fb (diff)
downloadclang-dbfa950abe0e55b173286a306ee620eff5f72ea8.tar.gz
clang-dbfa950abe0e55b173286a306ee620eff5f72ea8.tar.bz2
clang-dbfa950abe0e55b173286a306ee620eff5f72ea8.tar.xz
[analyzer; alternate edges] don't add an edge incoming from the start of a function
for a nested call. This matches what we do with the first stack frame. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/BugReporter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp
index 8388e76f51..6957ad737d 100644
--- a/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -1594,14 +1594,6 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD,
// call exit before this point. This means that the path
// terminated within the call itself.
if (Optional<CallEnter> CE = P.getAs<CallEnter>()) {
- // Add an edge to the start of the function.
- const StackFrameContext *CalleeLC = CE->getCalleeContext();
- PathDiagnosticLocation &PrevLocCallee = PrevLocMap[CalleeLC];
- const Decl *D = CalleeLC->getDecl();
- addEdgeToPath(PD.getActivePath(), PrevLocCallee,
- PathDiagnosticLocation::createBegin(D, SM),
- CalleeLC);
-
// Did we visit an entire call?
bool VisitedEntireCall = PD.isWithinCall();
PD.popActivePath();