This ensures every single terminate pad is a single BB in the form of:
%exn = catch $__cpp_exception call @__clang_call_terminate(%exn) unreachable
This is a preparation for HandleEHTerminatePads pass, which will be
added in a later CL and will run after CFGStackify. That pass duplicates
terminate pads with a catch_all instruction, and duplicating it
becomes simpler if we can ensure every terminate pad is a single BB.
Where does this global.set come from? If I understand the code correctly, the call __clang_call_terminate should have been directly after the catch.