From 8775e77305f84117827f1e6165c4d3776c51f667 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Fri, 9 Jun 2017 15:35:27 +0200 Subject: Add a warning about a varialbe of the name of an instruction --- libsolidity/analysis/ReferencesResolver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsolidity/analysis/ReferencesResolver.cpp') diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp index edf2fc02..2a5f27df 100644 --- a/libsolidity/analysis/ReferencesResolver.cpp +++ b/libsolidity/analysis/ReferencesResolver.cpp @@ -162,6 +162,8 @@ void ReferencesResolver::endVisit(ArrayTypeName const& _typeName) bool ReferencesResolver::visit(InlineAssembly const& _inlineAssembly) { + m_resolver.warnVariablesNamedLikeInstructions(); + // Errors created in this stage are completely ignored because we do not yet know // the type and size of external identifiers, which would result in false errors. // The only purpose of this step is to fill the inline assembly annotation with -- cgit v1.2.3