diff options
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/PCHReaderDecl.cpp | 6 | ||||
-rw-r--r-- | clang/lib/Frontend/RewriteObjC.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp index 56cdfc61923..43f0b2c5cda 100644 --- a/clang/lib/Frontend/PCHReaderDecl.cpp +++ b/clang/lib/Frontend/PCHReaderDecl.cpp @@ -180,7 +180,7 @@ void PCHDeclReader::VisitFunctionDecl(FunctionDecl *FD) { Params.reserve(NumParams); for (unsigned I = 0; I != NumParams; ++I) Params.push_back(cast<ParmVarDecl>(Reader.GetDecl(Record[Idx++]))); - FD->setParams(*Reader.getContext(), Params.data(), NumParams); + FD->setParams(Params.data(), NumParams); } void PCHDeclReader::VisitObjCMethodDecl(ObjCMethodDecl *MD) { @@ -388,7 +388,7 @@ void PCHDeclReader::VisitVarDecl(VarDecl *VD) { VD->setPreviousDeclaration( cast_or_null<VarDecl>(Reader.GetDecl(Record[Idx++]))); if (Record[Idx++]) - VD->setInit(*Reader.getContext(), Reader.ReadDeclExpr()); + VD->setInit(Reader.ReadDeclExpr()); } void PCHDeclReader::VisitImplicitParamDecl(ImplicitParamDecl *PD) { @@ -413,7 +413,7 @@ void PCHDeclReader::VisitBlockDecl(BlockDecl *BD) { Params.reserve(NumParams); for (unsigned I = 0; I != NumParams; ++I) Params.push_back(cast<ParmVarDecl>(Reader.GetDecl(Record[Idx++]))); - BD->setParams(*Reader.getContext(), Params.data(), NumParams); + BD->setParams(Params.data(), NumParams); } std::pair<uint64_t, uint64_t> diff --git a/clang/lib/Frontend/RewriteObjC.cpp b/clang/lib/Frontend/RewriteObjC.cpp index 50a281fbcca..dde4b0fcfa4 100644 --- a/clang/lib/Frontend/RewriteObjC.cpp +++ b/clang/lib/Frontend/RewriteObjC.cpp @@ -2460,7 +2460,7 @@ QualType RewriteObjC::getSuperStructType() { /*Mutable=*/false)); } - SuperStructDecl->completeDefinition(*Context); + SuperStructDecl->completeDefinition(); } return Context->getTagDeclType(SuperStructDecl); } @@ -2491,7 +2491,7 @@ QualType RewriteObjC::getConstantStringStructType() { /*Mutable=*/true)); } - ConstantStringDecl->completeDefinition(*Context); + ConstantStringDecl->completeDefinition(); } return Context->getTagDeclType(ConstantStringDecl); } |