]> granicus.if.org Git - clang/commitdiff
Undefined compound assignment result is checked in UndefinedAssignmentChecker. So...
authorZhongxing Xu <xuzhongxing@gmail.com>
Sun, 22 Nov 2009 13:36:20 +0000 (13:36 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sun, 22 Nov 2009 13:36:20 +0000 (13:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89592 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 518b57b747fef5798deae3e1397ee7b1e9fb3128..61277ba56045726ba1a19af193363fa757d6ce9d 100644 (file)
@@ -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.