diff --git a/llvm/lib/Bitstream/Reader/BitstreamReader.cpp b/llvm/lib/Bitstream/Reader/BitstreamReader.cpp --- a/llvm/lib/Bitstream/Reader/BitstreamReader.cpp +++ b/llvm/lib/Bitstream/Reader/BitstreamReader.cpp @@ -97,7 +97,7 @@ unsigned Code = MaybeCode.get(); Expected MaybeVBR = ReadVBR(6); if (!MaybeVBR) - return MaybeVBR.get(); + return MaybeVBR.takeError(); unsigned NumElts = MaybeVBR.get(); for (unsigned i = 0; i != NumElts; ++i) if (Expected Res = ReadVBR64(6))