[llvm] 061023e - [ELF] Fix build after getSectionAndRelocations Refactoring
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 9 09:21:15 PST 2023
Author: Aiden Grossman
Date: 2023-03-09T17:21:07Z
New Revision: 061023e45062292cc700dbd83ebcd9b720a2a220
URL: https://github.com/llvm/llvm-project/commit/061023e45062292cc700dbd83ebcd9b720a2a220
DIFF: https://github.com/llvm/llvm-project/commit/061023e45062292cc700dbd83ebcd9b720a2a220.diff
LOG: [ELF] Fix build after getSectionAndRelocations Refactoring
Didn't fail locally for some reason with my gcc toolchain.
Added:
Modified:
llvm/lib/Object/ELF.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/ELF.cpp b/llvm/lib/Object/ELF.cpp
index aaa2abfc42fd..46e1b13e7c06 100644
--- a/llvm/lib/Object/ELF.cpp
+++ b/llvm/lib/Object/ELF.cpp
@@ -746,7 +746,7 @@ ELFFile<ELFT>::getSectionAndRelocations(
SecToRelocMap[ContentsSec] = &Sec;
}
if(Errors)
- return Errors;
+ return std::move(Errors);
return SecToRelocMap;
}
More information about the llvm-commits
mailing list