forked from OSchip/llvm-project
Prevent warnings from the -Wshorten-64-to-32 flag.
llvm-svn: 50946
This commit is contained in:
parent
de9746cd45
commit
a6c46c2f21
|
@ -1683,12 +1683,9 @@ public:
|
||||||
return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertAtEnd);
|
return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertAtEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
~BranchInst()
|
~BranchInst() {
|
||||||
{
|
|
||||||
if (NumOperands == 1)
|
if (NumOperands == 1)
|
||||||
{
|
NumOperands = (unsigned)(uintptr_t)((Use*)this - OperandList);
|
||||||
NumOperands = (Use*)this - OperandList;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Transparently provide more efficient getOperand methods.
|
/// Transparently provide more efficient getOperand methods.
|
||||||
|
|
Loading…
Reference in New Issue