Fix warning on build with clang based compiler#3680
Merged
pvchupin merged 1 commit intointel:syclfrom May 3, 2021
Merged
Conversation
.../llvm/clang/lib/Sema/SemaSYCL.cpp(4662,10):
error: moving a local object in a return statement prevents copy elision
[-Werror,-Wpessimizing-move]
return std::move(NewShimName);
^
.../llvm/clang/lib/Sema/SemaSYCL.cpp(4662,10):
note: remove std::move call here
return std::move(NewShimName);
^~~~~~~~~~ ~
Signed-off-by: Pavel V Chupin <pavel.v.chupin@intel.com>
erichkeane
approved these changes
May 3, 2021
iclsrc
pushed a commit
that referenced
this pull request
Apr 30, 2026
) Some spirv-val invocations are failing with newer SPIRV-Tools (`e4bceacf`) for PtrCastToGeneric OpSpecConstantOps with the error: Expected input and Result Type to point to the same type Disable the spirv-val steps temporarily. Original commit: KhronosGroup/SPIRV-LLVM-Translator@7de094bda017e2a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.../llvm/clang/lib/Sema/SemaSYCL.cpp(4662,10):
error: moving a local object in a return statement prevents copy elision
[-Werror,-Wpessimizing-move]
return std::move(NewShimName);
^
.../llvm/clang/lib/Sema/SemaSYCL.cpp(4662,10):
note: remove std::move call here
return std::move(NewShimName);
^~~~~~~~~~ ~
Signed-off-by: Pavel V Chupin pavel.v.chupin@intel.com