================
@@ -457,6 +457,9 @@ bool Compiler<Emitter>::VisitCastExpr(const CastExpr *E) {
if (!Ctx.getLangOpts().HLSL && E->getType()->isConstantMatrixType())
return false;
+ llvm::SaveAndRestore DirectRead(DirectlyReadCLE,
+ getDirectlyReadCompoundLiteral(SubExpr));
+
----------------
tbaederr wrote:
Instead of doing this, why would
```c++
if (const auto *CLE = getDirectlyReadCompoundLiteral(SubExpr)) {
return this->visit(CLE->getInitializer());
}
```
directly after the volatile check below not work?
https://github.com/llvm/llvm-project/pull/241126
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits