Skip to content

Commit 34f0140

Browse files
committed
fixup! [lldb][AST] fix declaration context passed to parameter vars
1 parent 26f45d3 commit 34f0140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/HLSLExternalSemaSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ struct BuiltinTypeDeclBuilder {
252252

253253
IdentifierInfo &II = AST.Idents.get("Idx", tok::TokenKind::identifier);
254254
auto *IdxParam = ParmVarDecl::Create(
255-
AST, MethodDecl->getDeclContext(), SourceLocation(), SourceLocation(),
256-
&II, AST.UnsignedIntTy,
255+
AST, MethodDecl, SourceLocation(), SourceLocation(), &II,
256+
AST.UnsignedIntTy,
257257
AST.getTrivialTypeSourceInfo(AST.UnsignedIntTy, SourceLocation()),
258258
SC_None, nullptr);
259259
MethodDecl->setParams({IdxParam});

0 commit comments

Comments
 (0)