File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/utils/TableGen/Common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -869,9 +869,9 @@ void CodeGenRegisterClass::inheritProperties(CodeGenRegBank &RegBank) {
869869 // The last super-class is the smallest one in topological order. Check for
870870 // allocatable super-classes and inherit from the nearest allocatable one if
871871 // any.
872- auto NearestAllocSCRIt = std::find_if (
873- SuperClasses. rbegin (), SuperClasses. rend ( ),
874- [&](const CodeGenRegisterClass *S) { return S->Allocatable ; });
872+ auto NearestAllocSCRIt =
873+ find_if ( reverse (SuperClasses ),
874+ [&](const CodeGenRegisterClass *S) { return S->Allocatable ; });
875875 CodeGenRegisterClass &Super = NearestAllocSCRIt == SuperClasses.rend ()
876876 ? *SuperClasses.back ()
877877 : **NearestAllocSCRIt;
You can’t perform that action at this time.
0 commit comments