diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9f7b9772761..e5acc505f5b 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -212,12 +212,12 @@ static void SetGlobalValueAttributes(const Decl *D, } } -static void SetFunctionParamAttrs(const CGFunctionInfo &Info, llvm::Function *F) { +void CodeGenModule::SetFunctionParamAttrs(const CGFunctionInfo &Info, + llvm::Function *F) { ParamAttrListType ParamAttrList; - CodeGenFunction::ConstructParamAttrList(Info.getDecl(), - Info.argtypes_begin(), - Info.argtypes_end(), - ParamAttrList); + ConstructParamAttrList(Info.getDecl(), + Info.argtypes_begin(), Info.argtypes_end(), + ParamAttrList); F->setParamAttrs(llvm::PAListPtr::get(ParamAttrList.begin(), ParamAttrList.size())); |