aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/AsmPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libyul/AsmPrinter.cpp')
-rw-r--r--libyul/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libyul/AsmPrinter.cpp b/libyul/AsmPrinter.cpp
index a5b14953..b7af4778 100644
--- a/libyul/AsmPrinter.cpp
+++ b/libyul/AsmPrinter.cpp
@@ -55,8 +55,8 @@ string AsmPrinter::operator()(Literal const& _literal) const
solAssert(isValidDecimal(_literal.value.str()) || isValidHex(_literal.value.str()), "Invalid number literal");
return _literal.value.str() + appendTypeName(_literal.type);
case LiteralKind::Boolean:
- solAssert(_literal.value.str() == "true" || _literal.value.str() == "false", "Invalid bool literal.");
- return ((_literal.value.str() == "true") ? "true" : "false") + appendTypeName(_literal.type);
+ solAssert(_literal.value == "true"_yulstring || _literal.value == "false"_yulstring, "Invalid bool literal.");
+ return ((_literal.value == "true"_yulstring) ? "true" : "false") + appendTypeName(_literal.type);
case LiteralKind::String:
break;
}