mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
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
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user