don't break reading from stdin

llvm-svn: 36336
This commit is contained in:
Chris Lattner 2007-04-22 06:35:20 +00:00
parent 69892b79ce
commit 8ca41bfb57
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,9 @@ int main(int argc, char **argv) {
std::string ErrorMessage;
std::auto_ptr<Module> M;
M.reset(ParseBitcodeFile(InputFilename, &ErrorMessage));
if (InputFilename != "-")
M.reset(ParseBitcodeFile(InputFilename, &ErrorMessage));
if (M.get() == 0)
M.reset(ParseBytecodeFile(InputFilename,Compressor::decompressToNewBuffer,