]> granicus.if.org Git - clang/commitdiff
Bug fix: inverted test condition to see if a serialized AST-bitcode
authorTed Kremenek <kremenek@apple.com>
Tue, 6 Nov 2007 22:23:03 +0000 (22:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 6 Nov 2007 22:23:03 +0000 (22:23 +0000)
file had the correct preamble.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43785 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/SerializationTest.cpp

index 856ef75469ca219c4e60f8b86448dc4dc5e7156e..0e9363c8fbf7d5f03c303cb681b7b33eeb61c1ba 100644 (file)
@@ -188,7 +188,7 @@ void SerializationTest::Deserialize(llvm::sys::Path& Filename) {
   llvm::BitstreamReader Stream(BufPtr,BufPtr+MBuffer->getBufferSize());
   
   // Sniff for the signature in the bitcode file.
-  if (!ReadPremable(Stream)) {
+  if (ReadPremable(Stream)) {
     llvm::cerr << "ERROR: Invalid AST-bitcode signature.\n";
     return;
   }