mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -972,12 +972,12 @@ public:
|
||||
|
||||
SDOperandPtr(SDUse * use_ptr) {
|
||||
ptr = &use_ptr->getSDOperand();
|
||||
object_size = sizeof(SDUse);
|
||||
object_size = (int)sizeof(SDUse);
|
||||
}
|
||||
|
||||
SDOperandPtr(const SDOperand * op_ptr) {
|
||||
ptr = op_ptr;
|
||||
object_size = sizeof(SDOperand);
|
||||
object_size = (int)sizeof(SDOperand);
|
||||
}
|
||||
|
||||
const SDOperand operator *() { return *ptr; }
|
||||
@@ -1107,7 +1107,7 @@ public:
|
||||
/// getOperandNum - Retrive a number of a current operand.
|
||||
unsigned getOperandNum() const {
|
||||
assert(Op && "Cannot dereference end iterator!");
|
||||
return (Op - Op->getUser()->OperandList);
|
||||
return (unsigned)(Op - Op->getUser()->OperandList);
|
||||
}
|
||||
|
||||
/// Retrieve a reference to the current operand.
|
||||
|
Reference in New Issue
Block a user