[all-commits] [llvm/llvm-project] 03618c: [HLSL] Fix move assignment of `this` (#108445)
Chris B via All-commits
all-commits at lists.llvm.org
Fri Sep 13 15:37:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03618ceabd003be94190b068db11b607fd1108ef
https://github.com/llvm/llvm-project/commit/03618ceabd003be94190b068db11b607fd1108ef
Author: Chris B <chris.bieneman at me.com>
Date: 2024-09-13 (Fri, 13 Sep 2024)
Changed paths:
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/CodeGenHLSL/this-assignment.hlsl
Log Message:
-----------
[HLSL] Fix move assignment of `this` (#108445)
Under HLSL 202x+ move assignment can occur and when targeting `this`
move assignment was generating some really odd errors. This corrects the
errors by properly generating the `this` object reference for HLSL and
always treating it as a reference.
This mirrors the implementation added eariler for copy assignment, and
extends the test case to cover both move and copy assignment under HLSL
202x+.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list