diff options
author | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-11-08 15:36:01 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@lip6.fr> | 2008-11-08 15:36:01 +0000 |
commit | 5a48f232f76391f490f375dee8643e415e05855a (patch) | |
tree | f30a2a026ae4f72642ec1e1c667f4c750e6fbee0 /llvm/lib | |
parent | 2e133e47aafc8f797edd1ce992a09aa0cc25a77b (diff) | |
download | bcm5719-llvm-5a48f232f76391f490f375dee8643e415e05855a.tar.gz bcm5719-llvm-5a48f232f76391f490f375dee8643e415e05855a.zip |
The Index field of an AttributeWithIndex is of type unsigned, not uint16_t.
llvm-svn: 58908
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 351c3394f4c..ead92674c82 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/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) |