llvm.org GIT mirror llvm / ec31a30
Remove uses of the redundant ".reset(nullptr)" of unique_ptr, in favor of ".reset()" It's also possible to just write "= nullptr", but there's some question of whether that's as readable, so I leave it up to authors to pick which they prefer for now. If we want to discuss standardizing on one or the other, we can do that at some point in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213438 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 5 years ago
5 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
266266
267267 char CallGraphWrapperPass::ID = 0;
268268
269 void CallGraphWrapperPass::releaseMemory() { G.reset(nullptr); }
269 void CallGraphWrapperPass::releaseMemory() { G.reset(); }
270270
271271 void CallGraphWrapperPass::print(raw_ostream &OS, const Module *) const {
272272 if (!G) {
156156 }
157157
158158 void RABasic::releaseMemory() {
159 SpillerInstance.reset(nullptr);
159 SpillerInstance.reset();
160160 }
161161
162162
485485 }
486486
487487 void RAGreedy::releaseMemory() {
488 SpillerInstance.reset(nullptr);
488 SpillerInstance.reset();
489489 ExtraRegInfo.clear();
490490 GlobalCand.clear();
491491 }
8686
8787 std::error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
8888 // Unmap buffer, letting OS flush dirty pages to file on disk.
89 Region.reset(nullptr);
89 Region.reset();
9090
9191 // If requested, resize file as part of commit.
9292 if ( NewSmallerSize != -1 ) {
399399 }
400400
401401 if (NewOptionsToMatch.empty()) {
402 MatcherPtr.reset(nullptr);
402 MatcherPtr.reset();
403403 return;
404404 }
405405