diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-10-14 08:54:26 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-10-14 08:54:26 +0000 |
| commit | 76d2cd2f607f01fae4b987a18508a859e2bfb6c7 (patch) | |
| tree | 8649452509862f8d615b822653a69d31e36cac49 /llvm/lib/VMCore/Attributes.cpp | |
| parent | 6bbdf70818940ae5d9a162abb3d59d7cc376f637 (diff) | |
| download | bcm5719-llvm-76d2cd2f607f01fae4b987a18508a859e2bfb6c7.tar.gz bcm5719-llvm-76d2cd2f607f01fae4b987a18508a859e2bfb6c7.zip | |
Remove operator cast method in favor of querying with the correct method.
llvm-svn: 165899
Diffstat (limited to 'llvm/lib/VMCore/Attributes.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Attributes.cpp b/llvm/lib/VMCore/Attributes.cpp index a32b79d7346..f9957d65348 100644 --- a/llvm/lib/VMCore/Attributes.cpp +++ b/llvm/lib/VMCore/Attributes.cpp @@ -566,7 +566,7 @@ AttrListPtr AttrListPtr::removeAttr(LLVMContext &C, unsigned Idx, Attrs = Attributes::get(Attributes::Builder(OldAttrList[i].Attrs). removeAttributes(Attrs)); ++i; - if (Attrs) // If any attributes left for this parameter, add them. + if (Attrs.hasAttributes()) // If any attributes left for this param, add them. NewAttrList.push_back(AttributeWithIndex::get(Idx, Attrs)); // Copy attributes for arguments after this one. @@ -580,7 +580,7 @@ void AttrListPtr::dump() const { dbgs() << "PAL[ "; for (unsigned i = 0; i < getNumSlots(); ++i) { const AttributeWithIndex &PAWI = getSlot(i); - dbgs() << "{" << PAWI.Index << "," << PAWI.Attrs << "} "; + dbgs() << "{" << PAWI.Index << "," << PAWI.Attrs.getAsString() << "} "; } dbgs() << "]\n"; |

