Fix compilation under LLVM backend. (#5965)