Fix for bug reported by Evzen Muller on llvm-commits: make sure to correctly