Inverse the error check logic for the MappedFile::map() call. It returns
a null pointer when there is an error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29827 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Bytecode/Archive/ArchiveWriter.cpp b/lib/Bytecode/Archive/ArchiveWriter.cpp
index a5b52f4..c99d851 100644
--- a/lib/Bytecode/Archive/ArchiveWriter.cpp
+++ b/lib/Bytecode/Archive/ArchiveWriter.cpp
@@ -209,7 +209,7 @@
     mFile = new sys::MappedFile();
     if (mFile->open(member.getPath(), sys::MappedFile::READ_ACCESS, &ErrMsg))
       throw ErrMsg;
-    if (data = (const char*) mFile->map(&ErrMsg))
+    if (!(data = (const char*) mFile->map(&ErrMsg)))
       throw ErrMsg;
     fSize = mFile->size();
   }