diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-04 03:39:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-04 03:39:28 +0000 |
commit | 645fc4edc23930365595e3e4b3314db0433a8182 (patch) | |
tree | d4b0f42f583b70072a292a14762c9ea24d4925f1 /lib/VMCore | |
parent | e4b4394b2f53c6ee8690669164710b109274a574 (diff) | |
download | external_llvm-645fc4edc23930365595e3e4b3314db0433a8182.zip external_llvm-645fc4edc23930365595e3e4b3314db0433a8182.tar.gz external_llvm-645fc4edc23930365595e3e4b3314db0433a8182.tar.bz2 |
if functiontype is going to have a pointer to a paramattr object, it better
be const. The only way to get a pointer to these returns a const pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 3463e38..4bb32bb 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -417,7 +417,7 @@ const IntegerType *Type::Int64Ty = new BuiltinIntegerType(64); FunctionType::FunctionType(const Type *Result, const std::vector<const Type*> &Params, - bool IsVarArgs, ParamAttrsList *Attrs) + bool IsVarArgs, const ParamAttrsList *Attrs) : DerivedType(FunctionTyID), isVarArgs(IsVarArgs), ParamAttrs(Attrs) { ContainedTys = reinterpret_cast<PATypeHandle*>(this+1); NumContainedTys = Params.size() + 1; // + 1 for result type @@ -1084,7 +1084,7 @@ FunctionValType FunctionValType::get(const FunctionType *FT) { FunctionType *FunctionType::get(const Type *ReturnType, const std::vector<const Type*> &Params, bool isVarArg, - ParamAttrsList *Attrs) { + const ParamAttrsList *Attrs) { FunctionValType VT(ReturnType, Params, isVarArg, Attrs); FunctionType *FT = FunctionTypes->get(VT); |