[llvm-commits] [llvm] r58908 - /llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Sat Nov 8 07:36:04 PST 2008


Author: geoffray
Date: Sat Nov  8 09:36:01 2008
New Revision: 58908

URL: http://llvm.org/viewvc/llvm-project?rev=58908&view=rev
Log:
The Index field of an AttributeWithIndex is of type unsigned, not uint16_t.


Modified:
    llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp

Modified: llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp?rev=58908&r1=58907&r2=58908&view=diff

==============================================================================
--- llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp (original)
+++ llvm/trunk/lib/Target/CppBackend/CPPBackend.cpp Sat Nov  8 09:36:01 2008
@@ -439,9 +439,9 @@
       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)





More information about the llvm-commits mailing list