Skip to content

Commit 911820b

Browse files
Kyungwoo Leekyulee-com
authored andcommitted
Fix for build breaks
1 parent 6e528b7 commit 911820b

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

llvm/lib/CodeGenData/CodeGenDataReader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include "llvm/CodeGenData/CodeGenDataReader.h"
1414
#include "llvm/CodeGenData/OutlinedHashTreeRecord.h"
15+
#include "llvm/Object/ObjectFile.h"
1516
#include "llvm/Support/MemoryBuffer.h"
1617

1718
#define DEBUG_TYPE "cg-data-reader"
@@ -75,7 +76,7 @@ Error IndexedCodeGenDataReader::read() {
7576
auto *End =
7677
reinterpret_cast<const unsigned char *>(DataBuffer->getBufferEnd());
7778
if (auto E = IndexedCGData::Header::readFromBuffer(Start).moveInto(Header))
78-
return std::move(E);
79+
return E;
7980

8081
if (hasOutlinedHashTree()) {
8182
const unsigned char *Ptr = Start + Header.OutlinedHashTreeOffset;

llvm/test/tools/llvm-cgdata/merge-archive.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: shell
1+
# REQUIRES: shell, aarch64-registered-target
22
# UNSUPPORTED: system-windows
33

44
# Merge an archive that has two object files having cgdata (__llvm_outline)

llvm/test/tools/llvm-cgdata/merge-concat.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: shell
1+
# REQUIRES: shell, aarch64-registered-target
22
# UNSUPPORTED: system-windows
33

44
# Merge a binary file (e.g., a linked executable) having concatenated cgdata (__llvm_outline)

llvm/test/tools/llvm-cgdata/merge-double.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: shell
1+
# REQUIRES: shell, aarch64-registered-target
22
# UNSUPPORTED: system-windows
33

44
# Merge two object files having cgdata (__llvm_outline)

llvm/test/tools/llvm-cgdata/merge-single.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: shell
1+
# REQUIRES: shell, aarch64-registered-target
22
# UNSUPPORTED: system-windows
33

44
# Test merge a single object file into a cgdata

0 commit comments

Comments
 (0)