Skip to content

Commit

Permalink
Make it easier for users to discover that copying arrays and structs …
Browse files Browse the repository at this point in the history
…to storage is unimplemented only in legacy codegen and works via IR (#15432)
  • Loading branch information
mehtavishwa30 authored Sep 16, 2024
1 parent 4049f51 commit 322d656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsolidity/codegen/ArrayUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void ArrayUtils::copyArrayToStorage(ArrayType const& _targetType, ArrayType cons
else if (sourceBaseType->isValueType())
CompilerUtils(_context).loadFromMemoryDynamic(*sourceBaseType, fromCalldata, true, false);
else
solUnimplemented("Copying of type " + _sourceType.toString(false) + " to storage not yet supported.");
solUnimplemented("Copying of type " + _sourceType.toString(false) + " to storage is not supported in legacy (only supported by the IR pipeline). Hint: try compiling with `--via-ir` (CLI) or the equivalent `viaIR: true` (Standard JSON)");
// stack: target_ref target_data_end source_data_pos target_data_pos source_data_end [target_byte_offset] [source_byte_offset] <source_value>...
assertThrow(
2 + byteOffsetSize + sourceBaseType->sizeOnStack() <= 16,
Expand Down

0 comments on commit 322d656

Please sign in to comment.