don't break reading from stdin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36336 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-22 06:35:20 +00:00
parent 395439bb22
commit 197cceaaac

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,