stage2: LLVM backend: adjust replaceAllUsesWith usage

replaceAllUsesWith requires the type to be unchanged. So we bitcast
the new global to the old type and use that as the thing to replace
old uses.

Fixes an LLVM assertion found while troubleshooting #10837.
f293fbbeafAndrew Kelley committed on 2/12/2022, 10:18:23 AM· committed by Jakub Konkaparentbeb275b
1 file changedLine totals unavailable