Some programmers will lose their jobs to LLMs. Those who lack confidence and give up because they saw a rigged Devin demo, for example. And those who can't actually deliver value now, because CoPilot can copy/paste from StackOverflow better.
If you think of your job as just writing more code then you might get pushed aside. If you think of your job as solving problems and adding business value, working with other people and thinking things through, I expect you will survive the LLM hype train.
Right now companies pay a small fraction of the true cost of LLMs. We're getting that first hit free to get us hooked. Once companies have to pay actual costs LLMs might not present an attractive alternative. And the performance of LLMs has started to plateau -- no reason to think the "rate of progress" will continue. And many reasons to think the rate and the progress get over-hyped and exaggerated.
I've survived several no-code and outsourcing panics in the business already. Do you think the managers who can't reliably reply to an email or sum a column in Excel will just turn into "prompt engineers" cranking out working code?