diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-12 17:46:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-12 17:46:07 +0000 |
commit | e0e0c94fa26abeef39166fc0d50e901ba3a1a638 (patch) | |
tree | 223c08da850d3022d076fd0c3679f0751ca35ad5 /CodeGen/CodeGenFunction.cpp | |
parent | dbb6543dd11e818df8a3228c6ffcc1976f096b15 (diff) |
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
Diffstat (limited to 'CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | CodeGen/CodeGenFunction.cpp | 7 |
1 files 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); |