Phytosaur
Although phytosaurs were not true crocodilians, they were more closely related to the crocodilians than to other modern reptiles. Crocodiles did not become phytosaur-like until the Lower Jurassic. "Consensus generally places phytosaurs as basal crurotarsans, possibly the basal-most group".