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