diff options
author | Duncan Sands <baldrick@free.fr> | 2007-11-30 18:19:18 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-11-30 18:19:18 +0000 |
commit | 757d243167a52fef433146be11fa1462f6468270 (patch) | |
tree | aa3c16399f7b2fdb1556a69aef681da2ff8d4678 /tools/llvm-upgrade | |
parent | a8b974648f9d8bacc43280653dc654c9120d05ca (diff) | |
download | external_llvm-757d243167a52fef433146be11fa1462f6468270.zip external_llvm-757d243167a52fef433146be11fa1462f6468270.tar.gz external_llvm-757d243167a52fef433146be11fa1462f6468270.tar.bz2 |
Add a convenience method for modifying parameter
attributes. While there, I noticed that not all
attribute methods returned a pointer-to-constant,
so I fixed that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade')
-rw-r--r-- | tools/llvm-upgrade/UpgradeParser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index b9a26cb..7a6e3ef 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -2055,7 +2055,7 @@ UpRTypes bool isVarArg = Params.size() && Params.back() == Type::VoidTy; if (isVarArg) Params.pop_back(); - ParamAttrsList *PAL = 0; + const ParamAttrsList *PAL = 0; if (lastCallingConv == OldCallingConv::CSRet) { ParamAttrsVector Attrs; ParamAttrsWithIndex PAWI; |