[ELF] Fix build after getSectionAndRelocations Refactoring
authorAiden Grossman <agrossman154@yahoo.com>
Thu, 9 Mar 2023 17:20:18 +0000 (17:20 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Thu, 9 Mar 2023 17:21:07 +0000 (17:21 +0000)
Didn't fail locally for some reason with my gcc toolchain.

llvm/lib/Object/ELF.cpp

index aaa2abf..46e1b13 100644 (file)
@@ -746,7 +746,7 @@ ELFFile<ELFT>::getSectionAndRelocations(
       SecToRelocMap[ContentsSec] = &Sec;
   }
   if(Errors)
-    return Errors;
+    return std::move(Errors);
   return SecToRelocMap;
 }