Fix PR22386. The inliner moves static allocas to the entry basic block