summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-11-22 13:36:20 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-11-22 13:36:20 +0000
commit014af28ce333609bca47d1228eb2236003a7de40 (patch)
tree530e458330a1ab96c183caa9632b7407eab52a4c /clang
parent39638e133a1befa3061ad4d11d86bd7ee12b3b4b (diff)
downloadbcm5719-llvm-014af28ce333609bca47d1228eb2236003a7de40.tar.gz
bcm5719-llvm-014af28ce333609bca47d1228eb2236003a7de40.zip
Undefined compound assignment result is checked in UndefinedAssignmentChecker. So this check is redundant.
llvm-svn: 89592
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 518b57b747f..61277ba5604 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/lib/Analysis/GRExprEngine.cpp
@@ -2772,15 +2772,6 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
RightV, CTy),
state, B->getType(), CTy);
- if (Result.isUndef()) {
- // The operands were not undefined, but the result is undefined.
- if (ExplodedNode* UndefNode = Builder->generateNode(B, state, *I3)) {
- UndefNode->markAsSink();
- UndefResults.insert(UndefNode);
- }
- continue;
- }
-
// EXPERIMENTAL: "Conjured" symbols.
// FIXME: Handle structs.
OpenPOWER on IntegriCloud