solang icon indicating copy to clipboard operation
solang copied to clipboard

Implement codegen expression `Expression::StringLiteral`

Open xermicus opened this issue 2 years ago • 0 comments

          As we don't use `AllocDynamicBytes`, we could just have an `Expression::StringLiteral` to cover this case.

Originally posted by @LucasSte in https://github.com/hyperledger/solang/pull/1449#discussion_r1269462467

This would be useful in a number of places, including the linked PR.

In emit, it should just yield a interned global string, the same as Expression::AllocDynamicBytes does if the Type is Slice

xermicus avatar Jul 21 '23 13:07 xermicus