Skip to content

Commit 40c944b

Browse files
authored
Update LVReaderHandler.cpp
Fix crash due to un-checked error in LVReaderHandler::handleArchive method. Correction thanks to @CarlosAlbertoEnciso suggestion
1 parent 3dbff90 commit 40c944b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/DebugInfo/LogicalView/LVReaderHandler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ Error LVReaderHandler::handleArchive(LVReaders &Readers, StringRef Filename,
8888
Filename.str().c_str());
8989
}
9090

91+
if (Err)
92+
return createStringError(errorToErrorCode(std::move(Err)), "%s",
93+
Filename.str().c_str());
9194
return Error::success();
9295
}
9396

0 commit comments

Comments
 (0)