[clang] 2b06410 - Fix a build error (#133957)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 1 11:24:57 PDT 2025


Author: Arvind Sudarsanam
Date: 2025-04-01T18:24:54Z
New Revision: 2b064108ed55af510379edc81622983385c7977f

URL: https://github.com/llvm/llvm-project/commit/2b064108ed55af510379edc81622983385c7977f
DIFF: https://github.com/llvm/llvm-project/commit/2b064108ed55af510379edc81622983385c7977f.diff

LOG: Fix a build error (#133957)

This fixes error reported in post-commit testing of
https://github.com/llvm/llvm-project/pull/133797
LOG: https://lab.llvm.org/buildbot/#/builders/140/builds/20266

Thanks

Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam at intel.com>

Added: 
    

Modified: 
    clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

Removed: 
    


################################################################################
diff  --git a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
index f4a16549340a1..fccea538b1dc5 100644
--- a/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+++ b/clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
@@ -205,7 +205,7 @@ Expected<std::unique_ptr<Module>> getBitcodeModule(StringRef File,
 
   auto M = getLazyIRFileModule(File, Err, C);
   if (M)
-    return M;
+    return std::move(M);
   return createStringError(Err.getMessage());
 }
 


        


More information about the cfe-commits mailing list