Type checking for Yul.

This commit is contained in:
chriseth
2020-02-24 15:05:18 +01:00
parent aa6a2b4706
commit 1f51716227
4 changed files with 101 additions and 34 deletions
+9
View File
@@ -19,10 +19,19 @@
*/
#include <libyul/Dialect.h>
#include <libyul/AsmData.h>
using namespace solidity::yul;
using namespace std;
bool Dialect::validTypeForLiteral(LiteralKind _kind, YulString, YulString _type) const
{
if (_kind == LiteralKind::Boolean)
return _type == boolType;
else
return true;
}
Dialect const& Dialect::yulDeprecated()
{
static unique_ptr<Dialect> dialect;