Skip to content

Commit 8719f52

Browse files
compnerdbob-wilson
authored andcommitted
ClangImporter: adjust for SVN r349901
The constructor for `DeclRefExpr` now takes a `Context` parameter to avoid the call to `getASTContext`. Adjust the invocation accordingly.
1 parent 437cfa7 commit 8719f52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
10371037
nullptr);
10381038
cGetterDecl->setParams(cGetterSelf);
10391039

1040-
auto cGetterSelfExpr = new (Ctx) clang::DeclRefExpr(cGetterSelf, false,
1040+
auto cGetterSelfExpr = new (Ctx) clang::DeclRefExpr(Ctx, cGetterSelf, false,
10411041
recordType,
10421042
clang::VK_RValue,
10431043
clang::SourceLocation());
@@ -1083,7 +1083,7 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
10831083
cSetterParams.push_back(cSetterSelf);
10841084
cSetterDecl->setParams(cSetterParams);
10851085

1086-
auto cSetterSelfExpr = new (Ctx) clang::DeclRefExpr(cSetterSelf, false,
1086+
auto cSetterSelfExpr = new (Ctx) clang::DeclRefExpr(Ctx, cSetterSelf, false,
10871087
recordPointerType,
10881088
clang::VK_RValue,
10891089
clang::SourceLocation());
@@ -1097,7 +1097,7 @@ makeBitFieldAccessors(ClangImporter::Implementation &Impl,
10971097
clang::VK_LValue,
10981098
clang::OK_BitField);
10991099

1100-
auto cSetterValueExpr = new (Ctx) clang::DeclRefExpr(cSetterValue, false,
1100+
auto cSetterValueExpr = new (Ctx) clang::DeclRefExpr(Ctx, cSetterValue, false,
11011101
fieldType,
11021102
clang::VK_RValue,
11031103
clang::SourceLocation());

0 commit comments

Comments
 (0)