summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Archive/ArchiveWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp b/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
index a5b52f465a9..c99d8510c51 100644
--- a/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
+++ b/llvm/lib/Bytecode/Archive/ArchiveWriter.cpp
@@ -209,7 +209,7 @@ Archive::writeMember(
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();
}
OpenPOWER on IntegriCloud