Skip to content

Commit 00ef948

Browse files
[AMDGPU] Remove const on a return type. (#168490)
While I am at it, this patch switches to the constructor that takes a container instead of a pair of begin/end. Identified with readability-const-return-type.
1 parent 4749cc4 commit 00ef948

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,7 @@ class SplitGraph {
314314
#endif
315315

316316
bool empty() const { return Nodes.empty(); }
317-
const iterator_range<nodes_iterator> nodes() const {
318-
return {Nodes.begin(), Nodes.end()};
319-
}
317+
iterator_range<nodes_iterator> nodes() const { return Nodes; }
320318
const Node &getNode(unsigned ID) const { return *Nodes[ID]; }
321319

322320
unsigned getNumNodes() const { return Nodes.size(); }

0 commit comments

Comments
 (0)