From 7df986539f7e39652da38c9b27df041e61f014f9 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 29 Jul 2020 18:43:34 +0100 Subject: [PATCH] Disallow using reserved identifiers in NameDispenser/VarNameCleaner --- libyul/optimiser/OptimizerUtilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyul/optimiser/OptimizerUtilities.cpp b/libyul/optimiser/OptimizerUtilities.cpp index 2a3f7db90..52019356e 100644 --- a/libyul/optimiser/OptimizerUtilities.cpp +++ b/libyul/optimiser/OptimizerUtilities.cpp @@ -45,5 +45,5 @@ void yul::removeEmptyBlocks(Block& _block) bool yul::isRestrictedIdentifier(Dialect const& _dialect, YulString const& _identifier) { - return _identifier.empty() || TokenTraits::isYulKeyword(_identifier.str()) || _dialect.builtin(_identifier); + return _identifier.empty() || TokenTraits::isYulKeyword(_identifier.str()) || _dialect.reservedIdentifier(_identifier); }