[clang] [Clang][HLSL] Start emitting structured GEP instruction (PR #177332)
Nathan Gauër via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 12 00:43:53 PST 2026
================
@@ -4498,6 +4498,9 @@ Address CodeGenFunction::EmitArrayToPointerDecay(const Expr *E,
if (!E->getType()->isVariableArrayType()) {
assert(isa<llvm::ArrayType>(Addr.getElementType()) &&
"Expected pointer to array");
+
+ if (getLangOpts().HLSL && getLangOpts().EmitStructuredGEP)
+ return Addr;
----------------
Keenuts wrote:
done thanks!
https://github.com/llvm/llvm-project/pull/177332
More information about the cfe-commits
mailing list