As figured out in #615754, with slotted LLVM now it is possible to install a newer LLVM slot without matching clang version. This makes the logic used in the eclass fail. The package in question locates llvm-config for the newest supported LLVM version rather than the one having clang. What I'm thinking of is adding: LLVM_NEED_COMPONENTS='clang' which would cause the eclass to consider only LLVM versions with matching clang version. For detection, we can check if $prefix/bin/clang exists.
This is now solved by llvm_check_deps().