We need a ruling that LLM generated code enters public domain automatically and can't be covered by any license.
But then we would need a way to prove that some code was LLM generated, right?
Like if I copy-paste GPL-licenced code, the way you realise that I copy-pasted it is because 1) you can see it and 2) the GPL-licenced code exists. But when code is LLM generated, it is "new". If I claim I wrote it, how would you oppose that?
Laws exist to protect those who make and have money. If trillions could be made harvesting your kids kidneys it would be legal.
It's more or less already the case though. Pure AI-generated works without human touches are not copyrightable.