llvm.org GIT mirror llvm / 650c938
Keep header file free of 'possible loss of data' warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36832 91177308-0d34-0410-b5e6-96231b3b80d8 Jeff Cohen 12 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
153153 bool getValueTypePair(SmallVector &Record, unsigned &Slot,
154154 unsigned InstNum, Value *&ResVal) {
155155 if (Slot == Record.size()) return true;
156 unsigned ValNo = Record[Slot++];
156 unsigned ValNo = (unsigned)Record[Slot++];
157157 if (ValNo < InstNum) {
158158 // If this is not a forward reference, just return the value we already
159159 // have.
163163 return true;
164164 }
165165
166 unsigned TypeNo = Record[Slot++];
166 unsigned TypeNo = (unsigned)Record[Slot++];
167167 ResVal = getFnValueByID(ValNo, getTypeByID(TypeNo));
168168 return ResVal == 0;
169169 }
170170 bool getValue(SmallVector &Record, unsigned &Slot,
171171 const Type *Ty, Value *&ResVal) {
172172 if (Slot == Record.size()) return true;
173 unsigned ValNo = Record[Slot++];
173 unsigned ValNo = (unsigned)Record[Slot++];
174174 ResVal = getFnValueByID(ValNo, Ty);
175175 return ResVal == 0;
176176 }