diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-22 13:36:20 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-11-22 13:36:20 +0000 |
commit | 014af28ce333609bca47d1228eb2236003a7de40 (patch) | |
tree | 530e458330a1ab96c183caa9632b7407eab52a4c /clang | |
parent | 39638e133a1befa3061ad4d11d86bd7ee12b3b4b (diff) | |
download | bcm5719-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.cpp | 9 |
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. |