From e0e0c94fa26abeef39166fc0d50e901ba3a1a638 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Mar 2008 17:46:07 +0000 Subject: [PATCH] Update to reflect changes in parameter attribute api. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48290 91177308-0d34-0410-b5e6-96231b3b80d8 --- CodeGen/CodeGenFunction.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CodeGen/CodeGenFunction.cpp b/CodeGen/CodeGenFunction.cpp index 7d70e6c831..49f23f27c3 100644 --- a/CodeGen/CodeGenFunction.cpp +++ b/CodeGen/CodeGenFunction.cpp @@ -19,7 +19,6 @@ #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Function.h" -#include "llvm/ParamAttrsList.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Support/CFG.h" using namespace clang; @@ -92,9 +91,9 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) { FuncAttrs |= llvm::ParamAttr::NoReturn; if (FuncAttrs) { - llvm::ParamAttrsVector ParamAttrsVec; - ParamAttrsVec.push_back(llvm::ParamAttrsWithIndex::get(0, FuncAttrs)); - CurFn->setParamAttrs(llvm::ParamAttrsList::get(ParamAttrsVec)); + llvm::ParamAttrsWithIndex PAWI = + llvm::ParamAttrsWithIndex::get(0, FuncAttrs); + CurFn->setParamAttrs(llvm::PAListPtr::get(&PAWI, 1)); } llvm::BasicBlock *EntryBB = new llvm::BasicBlock("entry", CurFn); -- 2.40.0