File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -342,12 +342,14 @@ void ConstraintSystem::PotentialBindings::finalize(
342
342
// it's always better to infer concrete type and erase it if required
343
343
// by the context.
344
344
if (Bindings.size () > 1 ) {
345
- auto anyType = llvm::find_if (Bindings, [](const PotentialBinding &binding) {
346
- return binding.BindingType ->isAny () && !binding.isDefaultableBinding ();
347
- });
345
+ auto AnyTypePos =
346
+ llvm::find_if (Bindings, [](const PotentialBinding &binding) {
347
+ return binding.BindingType ->isAny () &&
348
+ !binding.isDefaultableBinding ();
349
+ });
348
350
349
- if (anyType != Bindings.end ()) {
350
- std::rotate (Bindings. begin (), anyType + 1 , Bindings.end ());
351
+ if (AnyTypePos != Bindings.end ()) {
352
+ std::rotate (AnyTypePos, AnyTypePos + 1 , Bindings.end ());
351
353
}
352
354
}
353
355
You can’t perform that action at this time.
0 commit comments