Skip to content

Commit 28e8ade

Browse files
committed
[clang] Fix build after 537344f
This fixes the following build failure on lldb-x86_64-debian: /llvm-project/clang/lib/Serialization/ASTReader.cpp:1453:12: error: call to deleted constructor of 'llvm::Error' return Err; ^~~ /llvm-project/llvm/include/llvm/Support/Error.h:189:3: note: 'Error' has been explicitly marked deleted here Error(const Error &Other) = delete; ^ /llvm-project/llvm/include/llvm/Support/Error.h:496:18: note: passing argument to parameter 'Err' here Expected(Error Err) ^
1 parent 7510f32 commit 28e8ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ ASTReader::readSLocOffset(ModuleFile *F, unsigned Index) {
14501450
SavedStreamPosition SavedPosition(Cursor);
14511451
if (llvm::Error Err = Cursor.JumpToBit(F->SLocEntryOffsetsBase +
14521452
F->SLocEntryOffsets[Index]))
1453-
return Err;
1453+
return std::move(Err);
14541454

14551455
Expected<llvm::BitstreamEntry> MaybeEntry = Cursor.advance();
14561456
if (!MaybeEntry)

0 commit comments

Comments
 (0)