Fix compiler warnings and one crash in llvm-test-suite.
Merge pull request #750 from cgay/llvm-test-suite

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