diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-05 20:55:50 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-05 20:55:50 +0000 |
commit | a5d7de9f082843a83677561338882be8824634d4 (patch) | |
tree | c1b878d263b8e9f508539ee3ad5005d1e247b034 /llvm/lib/Transforms | |
parent | 7c4218f49c7ffe9feb06751e3d530c53500662f3 (diff) | |
download | bcm5719-llvm-a5d7de9f082843a83677561338882be8824634d4.tar.gz bcm5719-llvm-a5d7de9f082843a83677561338882be8824634d4.zip |
-Wdeprecated cleanup: Make CallGraph movable by default by using unique_ptr members rather than raw pointers.
The only place that tries to return a CallGraph by value
(CallGraphAnalysis::run) doesn't seem to be used right now, but it's a
reasonable bit of cleanup anyway.
llvm-svn: 244122
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/Inliner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp index e6d137fa67e..b5f58bdf889 100644 --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/lib/Transforms/IPO/Inliner.cpp @@ -649,8 +649,8 @@ bool Inliner::removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly) { // Scan for all of the functions, looking for ones that should now be removed // from the program. Insert the dead ones in the FunctionsToRemove set. - for (auto I : CG) { - CallGraphNode *CGN = I.second; + for (const auto &I : CG) { + CallGraphNode *CGN = I.second.get(); Function *F = CGN->getFunction(); if (!F || F->isDeclaration()) continue; |