Skip to content

[SCCPSolver] Make getMRVFunctionsTracked return a reference (NFC) #140851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/include/llvm/Transforms/Utils/SCCPSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class SCCPSolver {

/// getMRVFunctionsTracked - Get the set of functions which return multiple
/// values tracked by the pass.
const SmallPtrSet<Function *, 16> getMRVFunctionsTracked();
const SmallPtrSet<Function *, 16> &getMRVFunctionsTracked();

/// markOverdefined - Mark the specified value overdefined. This
/// works with both scalars and structs.
Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Utils/SCCPSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ class SCCPInstVisitor : public InstVisitor<SCCPInstVisitor> {
return TrackedGlobals;
}

const SmallPtrSet<Function *, 16> getMRVFunctionsTracked() {
const SmallPtrSet<Function *, 16> &getMRVFunctionsTracked() {
return MRVFunctionsTracked;
}

Expand Down Expand Up @@ -2231,7 +2231,7 @@ SCCPSolver::getTrackedGlobals() {
return Visitor->getTrackedGlobals();
}

const SmallPtrSet<Function *, 16> SCCPSolver::getMRVFunctionsTracked() {
const SmallPtrSet<Function *, 16> &SCCPSolver::getMRVFunctionsTracked() {
return Visitor->getMRVFunctionsTracked();
}

Expand Down