File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ llvm::Error ClangDocBitcodeReader::validateStream() {
874
874
Expected<llvm::SimpleBitstreamCursor::word_t > MaybeRead = Stream.Read (8 );
875
875
if (!MaybeRead)
876
876
return MaybeRead.takeError ();
877
- else if (MaybeRead.get () != BitCodeConstants::Signature[Idx])
877
+ if (MaybeRead.get () != BitCodeConstants::Signature[Idx])
878
878
return llvm::createStringError (llvm::inconvertibleErrorCode (),
879
879
" invalid bitcode signature" );
880
880
}
@@ -886,8 +886,7 @@ llvm::Error ClangDocBitcodeReader::readBlockInfoBlock() {
886
886
Stream.ReadBlockInfoBlock ();
887
887
if (!MaybeBlockInfo)
888
888
return MaybeBlockInfo.takeError ();
889
- else
890
- BlockInfo = MaybeBlockInfo.get ();
889
+ BlockInfo = MaybeBlockInfo.get ();
891
890
if (!BlockInfo)
892
891
return llvm::createStringError (llvm::inconvertibleErrorCode (),
893
892
" unable to parse BlockInfoBlock" );
You can’t perform that action at this time.
0 commit comments