summaryrefslogtreecommitdiffstats
path: root/clang/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
commita9731a41796617623afb795564971d9b808ee331 (patch)
treec5fc178ebc54a69e0a162e07f045580978f7b80e /clang/lib/CodeGen/CGExprScalar.cpp
parent0f8ccc49382e1df00227214d6e05775d43576eb8 (diff)
downloadbcm5719-llvm-a9731a41796617623afb795564971d9b808ee331.tar.gz
bcm5719-llvm-a9731a41796617623afb795564971d9b808ee331.zip
Fix a major bug with -ftrapv and ++/--. Patch by David Keaton!
llvm-svn: 110347
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index fb277c6f0e2..8d28b2485f2 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud