…fixes. This reapplies c8c86efbbb5, which was reverted in 13ca8723d1b due to bot failures. Those failures were compilation errors exposed when LLVM is built with LLVM_ENABLE_EXPENSIVE_CHECKS=On. They have been fixed in this commit.
…fixes. This reapplies c8c86efbbb5, which was reverted in 13ca8723d1b due to bot failures. Those failures were compilation errors exposed when LLVM is built with LLVM_ENABLE_EXPENSIVE_CHECKS=On. They have been fixed in this commit.