[clang] [HLSL] Create XValue in HLSL list initialization if record is a prvalue (PR #186233)
Deric C. via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 12 16:49:52 PDT 2026
================
@@ -5317,6 +5317,11 @@ class InitListTransformer {
if (auto *RD = Ty->getAsCXXRecordDecl()) {
llvm::SmallVector<CXXRecordDecl *> RecordDecls;
RecordDecls.push_back(RD);
+ // if this is a pr value create an xvalue so the member accesses
+ // will be xvalues
----------------
Icohedron wrote:
nit
```suggestion
// If this is a prvalue create an xvalue so the member accesses
// will be xvalues.
```
https://github.com/llvm/llvm-project/pull/186233
More information about the cfe-commits
mailing list