summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-10 10:58:07 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-10 10:58:07 +0000
commita6c46c2f21e91bc5c5bc83985a7281d48300abfb (patch)
tree123306f84d50e9f7a80d52cdaa9c1019c0408749 /llvm
parentde9746cd45013c6f82d73d209c77384e21b548b1 (diff)
downloadbcm5719-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.h7
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.
OpenPOWER on IntegriCloud