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.sudarsa...@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());
 }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to