On Jan 11, 2007, at 11:06 PM, Reid Spencer wrote: > +// > ===------------------------------------------------------------------- > ---===// > +// Integer Type Factory... > +// > +namespace llvm { > +class IntegerValType { > + uint16_t bits; > +public: > + IntegerValType(uint16_t numbits) : bits(numbits) {} > + > + static IntegerValType get(const IntegerType *Ty) { > + return IntegerValType(Ty->getBitWidth()); > + } > + > + static unsigned hashTypeStructure(const IntegerType *Ty) { > + return (unsigned)Ty->getBitWidth(); > + } > + > + inline bool operator<(const IntegerValType &IVT) const { > + return bits < IVT.bits; > + } > +}; > +}
uint16_t is not sufficient here. You need at least uint23_t :) -Chris _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits