diff --git a/libsolidity/experimental/analysis/TypeInference.cpp b/libsolidity/experimental/analysis/TypeInference.cpp index f42132d7e..82b2de61a 100644 --- a/libsolidity/experimental/analysis/TypeInference.cpp +++ b/libsolidity/experimental/analysis/TypeInference.cpp @@ -1086,8 +1086,8 @@ TypeRegistration::TypeClassInstantiations const& typeClassInstantiations(Analysi if (typeClassDeclaration) return _analysis.annotation(*typeClassDeclaration).instantiations; // TODO: better mechanism than fetching by name. - auto& annotation = _analysis.annotation(); - auto& inferenceAnnotation = _analysis.annotation(); + auto const& annotation = _analysis.annotation(); + auto const& inferenceAnnotation = _analysis.annotation(); return annotation.builtinClassInstantiations.at( inferenceAnnotation.builtinClassesByName.at( _analysis.typeSystem().typeClassName(_class)