The Index field of an AttributeWithIndex is of type unsigned, not uint16_t.

llvm-svn: 58908
This commit is contained in:
Nicolas Geoffray 2008-11-08 15:36:01 +00:00
parent 2e133e47aa
commit 5a48f232f7
1 changed files with 2 additions and 2 deletions

View File

@ -439,9 +439,9 @@ namespace {
Out << "SmallVector<AttributeWithIndex, 4> Attrs;"; nl(Out);
Out << "AttributeWithIndex PAWI;"; nl(Out);
for (unsigned i = 0; i < PAL.getNumSlots(); ++i) {
uint16_t index = PAL.getSlot(i).Index;
unsigned index = PAL.getSlot(i).Index;
Attributes attrs = PAL.getSlot(i).Attrs;
Out << "PAWI.Index = " << index << "; PAWI.Attrs = 0 ";
Out << "PAWI.Index = " << index << "U; PAWI.Attrs = 0 ";
if (attrs & Attribute::SExt)
Out << " | Attribute::SExt";
if (attrs & Attribute::ZExt)