Skip to content

Commit eddd7f8

Browse files
[𝘀𝗽𝗿] initial version
Created using spr 1.3.6
1 parent 6e59d1d commit eddd7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CAS/ObjectStore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ ObjectStore::storeFromOpenFileImpl(sys::fs::file_t FD,
125125
// standalone file if the file-system supports it and the file is large.
126126
uint64_t Size = Status ? Status->getSize() : -1;
127127
auto Buffer = MemoryBuffer::getOpenFile(FD, /*Filename=*/"", Size);
128-
if (Buffer)
128+
if (!Buffer)
129129
return errorCodeToError(Buffer.getError());
130130

131131
return store({}, arrayRefFromStringRef<char>((*Buffer)->getBuffer()));

0 commit comments

Comments
 (0)