mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Remove warnings when using -Wshorten-64-to-32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50952 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eca2f99958
commit
c2e735359f
@ -960,14 +960,14 @@ public:
|
|||||||
InputIterator ArgBegin, InputIterator ArgEnd,
|
InputIterator ArgBegin, InputIterator ArgEnd,
|
||||||
const std::string &Name = "",
|
const std::string &Name = "",
|
||||||
Instruction *InsertBefore = 0) {
|
Instruction *InsertBefore = 0) {
|
||||||
return new(ArgEnd - ArgBegin + 1)
|
return new((unsigned)(ArgEnd - ArgBegin + 1))
|
||||||
CallInst(Func, ArgBegin, ArgEnd, Name, InsertBefore);
|
CallInst(Func, ArgBegin, ArgEnd, Name, InsertBefore);
|
||||||
}
|
}
|
||||||
template<typename InputIterator>
|
template<typename InputIterator>
|
||||||
static CallInst *Create(Value *Func,
|
static CallInst *Create(Value *Func,
|
||||||
InputIterator ArgBegin, InputIterator ArgEnd,
|
InputIterator ArgBegin, InputIterator ArgEnd,
|
||||||
const std::string &Name, BasicBlock *InsertAtEnd) {
|
const std::string &Name, BasicBlock *InsertAtEnd) {
|
||||||
return new(ArgEnd - ArgBegin + 1)
|
return new((unsigned)(ArgEnd - ArgBegin + 1))
|
||||||
CallInst(Func, ArgBegin, ArgEnd, Name, InsertAtEnd);
|
CallInst(Func, ArgBegin, ArgEnd, Name, InsertAtEnd);
|
||||||
}
|
}
|
||||||
static CallInst *Create(Value *F, Value *Actual, const std::string& Name = "",
|
static CallInst *Create(Value *F, Value *Actual, const std::string& Name = "",
|
||||||
@ -1685,7 +1685,7 @@ public:
|
|||||||
|
|
||||||
~BranchInst() {
|
~BranchInst() {
|
||||||
if (NumOperands == 1)
|
if (NumOperands == 1)
|
||||||
NumOperands = (unsigned)(uintptr_t)((Use*)this - OperandList);
|
NumOperands = (unsigned)((Use*)this - OperandList);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Transparently provide more efficient getOperand methods.
|
/// Transparently provide more efficient getOperand methods.
|
||||||
|
Loading…
Reference in New Issue
Block a user