From 051ae8acec0a641bcaf86e7eeff35eff29e8922d Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 9 Dec 2024 04:47:53 -0800 Subject: Fix crash during emitCast of attributed type, allow MaxIters to take linktime const. (#5791) * Fix crash during emitCast of attributed type. * Allow [MaxIters] to take link time constants. --------- Co-authored-by: Ellie Hermaszewska --- source/slang/slang-ast-modifier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ast-modifier.h') diff --git a/source/slang/slang-ast-modifier.h b/source/slang/slang-ast-modifier.h index ee9b55334..863ffaef2 100644 --- a/source/slang/slang-ast-modifier.h +++ b/source/slang/slang-ast-modifier.h @@ -744,7 +744,7 @@ class MaxItersAttribute : public Attribute { SLANG_AST_CLASS(MaxItersAttribute) - int32_t value = 0; + IntVal* value = 0; }; // An inferred max iteration count on a loop. -- cgit v1.2.3