Fix compiler warnings and one crash in llvm-test-suite.