Before GPS (and after), B-52s navigated using redundant Inertial Navigation Systems (INS).
The angle computers were removed from the H models in the early to mid 1990s and I doubt they added them back.