diff --git a/llvm/include/llvm/Transforms/Utils/SCCPSolver.h b/llvm/include/llvm/Transforms/Utils/SCCPSolver.h index 696f39ca984d1..f8966f5b7472f 100644 --- a/llvm/include/llvm/Transforms/Utils/SCCPSolver.h +++ b/llvm/include/llvm/Transforms/Utils/SCCPSolver.h @@ -147,7 +147,7 @@ class SCCPSolver { /// getMRVFunctionsTracked - Get the set of functions which return multiple /// values tracked by the pass. - const SmallPtrSet getMRVFunctionsTracked(); + const SmallPtrSet &getMRVFunctionsTracked(); /// markOverdefined - Mark the specified value overdefined. This /// works with both scalars and structs. diff --git a/llvm/lib/Transforms/Utils/SCCPSolver.cpp b/llvm/lib/Transforms/Utils/SCCPSolver.cpp index c64254140cf22..8a89bf654540c 100644 --- a/llvm/lib/Transforms/Utils/SCCPSolver.cpp +++ b/llvm/lib/Transforms/Utils/SCCPSolver.cpp @@ -848,7 +848,7 @@ class SCCPInstVisitor : public InstVisitor { return TrackedGlobals; } - const SmallPtrSet getMRVFunctionsTracked() { + const SmallPtrSet &getMRVFunctionsTracked() { return MRVFunctionsTracked; } @@ -2231,7 +2231,7 @@ SCCPSolver::getTrackedGlobals() { return Visitor->getTrackedGlobals(); } -const SmallPtrSet SCCPSolver::getMRVFunctionsTracked() { +const SmallPtrSet &SCCPSolver::getMRVFunctionsTracked() { return Visitor->getMRVFunctionsTracked(); }