aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Instructions.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 86bc3f5..b26eb3a 100644
--- a/include/llvm/Instructions.h
+++ b/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.