aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-05 17:39:44 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-05 17:39:44 +0000
commit401be6bddcf05ac2828730e0bb4e8b81931f8296 (patch)
tree3fc366e1068d21ef49ae15cb191806ec6a03e53d /lib/CodeGen/CGExprScalar.cpp
parentb1d397c23e1f8fd8b404d5731d531e7500f7140d (diff)
Fix a major bug with -ftrapv and ++/--. Patch by David Keaton!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index fb277c6f0e..8d28b2485f 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -1193,7 +1193,8 @@ EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV,
BinOp.Ty = E->getType();
BinOp.Opcode = BinaryOperator::Add;
BinOp.E = E;
- return EmitOverflowCheckedBinOp(BinOp);
+ NextVal = EmitOverflowCheckedBinOp(BinOp);
+ break;
}
}
} else {