File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class CGDataError : public ErrorInfo<CGDataError> {
81
81
// / contain a single CGDataError.
82
82
static std::pair<cgdata_error, std::string> take (Error E) {
83
83
auto Err = cgdata_error::success;
84
- std::string Msg = " " ;
84
+ std::string Msg;
85
85
handleAllErrors (std::move (E), [&Err, &Msg](const CGDataError &IPE) {
86
86
assert (Err == cgdata_error::success && " Multiple errors encountered" );
87
87
Err = IPE.get ();
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ CodeGenDataReader::create(std::unique_ptr<MemoryBuffer> Buffer) {
121
121
122
122
bool IndexedCodeGenDataReader::hasFormat (const MemoryBuffer &DataBuffer) {
123
123
using namespace support ;
124
- if (DataBuffer.getBufferSize () < 8 )
124
+ if (DataBuffer.getBufferSize () < sizeof (IndexedCGData::Magic) )
125
125
return false ;
126
126
127
127
uint64_t Magic = endian::read <uint64_t , llvm::endianness::little, aligned>(
You can’t perform that action at this time.
0 commit comments