aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/CPPBackend.cpp
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@lip6.fr>2008-11-08 15:36:01 +0000
committerNicolas Geoffray <nicolas.geoffray@lip6.fr>2008-11-08 15:36:01 +0000
commitd9afb4d08a0143c9b9266001175c1b03e33663b6 (patch)
treec895a4e59bb832895071dc158be8a86acf6e03bb /lib/Target/CppBackend/CPPBackend.cpp
parente0f4af3b49f8bcf5aed470e3f023133510e1da12 (diff)
The Index field of an AttributeWithIndex is of type unsigned, not uint16_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r--lib/Target/CppBackend/CPPBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index 351c3394f4..ead92674c8 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -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)