diff options
Diffstat (limited to 'clang/lib/Sema/HLSLExternalSemaSource.cpp')
| -rw-r--r-- | clang/lib/Sema/HLSLExternalSemaSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/HLSLExternalSemaSource.cpp b/clang/lib/Sema/HLSLExternalSemaSource.cpp index 071e64fe56d4..4102258e0b57 100644 --- a/clang/lib/Sema/HLSLExternalSemaSource.cpp +++ b/clang/lib/Sema/HLSLExternalSemaSource.cpp @@ -264,7 +264,7 @@ struct BuiltinTypeDeclBuilder { AST, MethodDecl->getDeclContext(), SourceLocation(), SourceLocation(), &II, AST.UnsignedIntTy, AST.getTrivialTypeSourceInfo(AST.UnsignedIntTy, SourceLocation()), - SC_None, nullptr); + SC_None, nullptr, MethodDecl->getTemplateDepth()); MethodDecl->setParams({IdxParam}); // Also add the parameter to the function prototype. |
