[llvm] Disable llvm instead of asserting in some cases. Fixes #17527.