summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
diff options
context:
space:
mode:
authorAhmed Charles <ahmedcharles@gmail.com>2014-03-07 19:33:25 +0000
committerAhmed Charles <ahmedcharles@gmail.com>2014-03-07 19:33:25 +0000
commit9a16beb8bc580212df519aa488242a94e53741d8 (patch)
tree569f8fb251291e9aaacc0ddb6d509a9561ddc264 /clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
parent9cbd3c628cfdcb7ba2f372b57db317df2a271ebb (diff)
downloadbcm5719-llvm-9a16beb8bc580212df519aa488242a94e53741d8.tar.gz
bcm5719-llvm-9a16beb8bc580212df519aa488242a94e53741d8.zip
Change OwningPtr::take() to OwningPtr::release().
This is a precursor to moving to std::unique_ptr. llvm-svn: 203275
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp b/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
index e0fafef05e7..8c08e75004d 100644
--- a/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
+++ b/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp
@@ -275,8 +275,8 @@ void PathDiagnosticConsumer::HandlePathDiagnostic(PathDiagnostic *D) {
Diags.RemoveNode(orig);
delete orig;
}
-
- Diags.InsertNode(OwningD.take());
+
+ Diags.InsertNode(OwningD.release());
}
static Optional<bool> comparePath(const PathPieces &X, const PathPieces &Y);
OpenPOWER on IntegriCloud