Improvements to llvm compiler by reducing warnings and fixing code