summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-autodiff.cpp
diff options
context:
space:
mode:
authorMukund Keshava <mkeshava@nvidia.com>2025-05-11 02:29:37 +0530
committerGitHub <noreply@github.com>2025-05-10 20:59:37 +0000
commit083eecee3f56b90c7011895f53aaafa9db15856e (patch)
treea0a18f0905f2884374ee351713fe77af0843f679 /source/slang/slang-ir-autodiff.cpp
parent48203ea02250ba517f749a222092f091d9bef15e (diff)
Add debug information for slang inling (#6621)
Diffstat (limited to 'source/slang/slang-ir-autodiff.cpp')
-rw-r--r--source/slang/slang-ir-autodiff.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-ir-autodiff.cpp b/source/slang/slang-ir-autodiff.cpp
index 6ad8c5dbb..c8dc3b480 100644
--- a/source/slang/slang-ir-autodiff.cpp
+++ b/source/slang/slang-ir-autodiff.cpp
@@ -965,7 +965,9 @@ IRInst* DifferentialPairTypeBuilder::lowerDiffPairType(IRBuilder* builder, IRTyp
if (as<IRThisType>(primalType) || as<IRAssociatedType>(primalType))
{
List<IRInterfaceType*> constraintTypes;
- constraintTypes.add(this->commonDiffPairInterface);
+ auto diffPairInterfaceType =
+ cast<IRInterfaceType>(getOrCreateCommonDiffPairInterface(builder));
+ constraintTypes.add(diffPairInterfaceType);
return builder->getAssociatedType(constraintTypes.getArrayView());
}