Add explanation to unimplemented assertions

This commit is contained in:
Alex Beregszaszi committed 2017-11-15 17:19:29 +00:00
1 parent 5e55b27e28
commit c1e202618c
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ void CompilerUtils::storeInMemoryDynamic(Type const& _type, bool _padToWordBound
{
if (auto ref = dynamic_cast<ReferenceType const*>(&_type))
{
solUnimplementedAssert(ref->location() == DataLocation::Memory, "");
solUnimplementedAssert(ref->location() == DataLocation::Memory, "Only in-memory reference type can be stored.");
storeInMemoryDynamic(IntegerType(256), _padToWordBoundaries);
}
else if (auto str = dynamic_cast<StringLiteralType const*>(&_type))