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 | 7be7848e17f60825f5fbc177b8a25909a30ddb00 (patch) | |
tree | 829167031026fff9cf34cb49fceda7e13bd9477b /lib/VMCore | |
parent | fd8d62c0b449b9070dc18355ac243c7fa78d40d6 (diff) | |
download | external_llvm-7be7848e17f60825f5fbc177b8a25909a30ddb00.zip external_llvm-7be7848e17f60825f5fbc177b8a25909a30ddb00.tar.gz external_llvm-7be7848e17f60825f5fbc177b8a25909a30ddb00.tar.bz2 |
Remove operator cast method in favor of querying with the correct method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Attributes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp index a32b79d..f9957d6 100644 --- a/lib/VMCore/Attributes.cpp +++ b/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"; |