The likely form of a GM bankruptcy would not be a liquidation but, instead a reorganization. That means the company would still exist but certain financial obligations would be reorganized. It would be a prepackaged bankruptcy, the various constituents -- unions, suppliers, bondholders -- would agree in advance to concessions.
Therefore the company would still exist and would continue to honor warranties.