Add work-arounds for LLVM bug 18253.