summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2019-01-18 08:43:22 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2019-01-18 08:43:22 +0000
commitd5dd6a5fdd0998a4b1c4f273bfa5b2936e4ec739 (patch)
tree6e09b3990027aa373083514c7cbbf429311729fa /clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
parente84c729aca49c5b8397ba96686bb4e019a95cd37 (diff)
downloadbcm5719-llvm-d5dd6a5fdd0998a4b1c4f273bfa5b2936e4ec739.tar.gz
bcm5719-llvm-d5dd6a5fdd0998a4b1c4f273bfa5b2936e4ec739.zip
Fix failing MSan bots
Revert r351508-351514, this block of changes introduced a consistent MSan failure on the sanitizer bots. llvm-svn: 351528
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp b/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
index 005bae097cc..3e93bb6a7c4 100644
--- a/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
+++ b/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
@@ -735,12 +735,6 @@ PathDiagnosticLocation::create(const ProgramPoint& P,
return getLocationForCaller(CEE->getCalleeContext(),
CEE->getLocationContext(),
SMng);
- } else if (auto CEB = P.getAs<CallExitBegin>()) {
- if (const ReturnStmt *RS = CEB->getReturnStmt())
- return PathDiagnosticLocation::createBegin(RS, SMng,
- CEB->getLocationContext());
- return PathDiagnosticLocation(
- CEB->getLocationContext()->getDecl()->getSourceRange().getEnd(), SMng);
} else if (Optional<BlockEntrance> BE = P.getAs<BlockEntrance>()) {
CFGElement BlockFront = BE->getBlock()->front();
if (auto StmtElt = BlockFront.getAs<CFGStmt>()) {
OpenPOWER on IntegriCloud