diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-05-10 10:58:07 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-05-10 10:58:07 +0000 |
commit | a6c46c2f21e91bc5c5bc83985a7281d48300abfb (patch) | |
tree | 123306f84d50e9f7a80d52cdaa9c1019c0408749 /llvm | |
parent | de9746cd45013c6f82d73d209c77384e21b548b1 (diff) | |
download | bcm5719-llvm-a6c46c2f21e91bc5c5bc83985a7281d48300abfb.tar.gz bcm5719-llvm-a6c46c2f21e91bc5c5bc83985a7281d48300abfb.zip |
Prevent warnings from the -Wshorten-64-to-32 flag.
llvm-svn: 50946
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Instructions.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 86bc3f5793d..b26eb3a403c 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -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. |