Prevent warnings from the -Wshorten-64-to-32 flag.

llvm-svn: 50946
This commit is contained in:
Bill Wendling 2008-05-10 10:58:07 +00:00
parent de9746cd45
commit a6c46c2f21
1 changed files with 2 additions and 5 deletions

View File

@ -1683,12 +1683,9 @@ public:
return new(3) BranchInst(IfTrue, IfFalse, Cond, InsertAtEnd);
}
~BranchInst()
{
~BranchInst() {
if (NumOperands == 1)
{
NumOperands = (Use*)this - OperandList;
}
NumOperands = (unsigned)(uintptr_t)((Use*)this - OperandList);
}
/// Transparently provide more efficient getOperand methods.