]> granicus.if.org Git - clang/commitdiff
Add FIXME.
authorTed Kremenek <kremenek@apple.com>
Mon, 20 Jul 2009 20:38:59 +0000 (20:38 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 20 Jul 2009 20:38:59 +0000 (20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76466 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 97e75fa0aca02942df7e762484edea294a7be3fb..7459b806e250bfe2101b88b419acec0f40a15a1e 100644 (file)
@@ -1310,6 +1310,11 @@ static bool EvalOSAtomicCompareAndSwap(ExplodedNodeSet<GRState>& Dst,
     const GRState *stateLoad = N->getState();
     SVal theValueVal = stateLoad->getSVal(theValueExpr);
     SVal oldValueVal = stateLoad->getSVal(oldValueExpr);
+    
+    // FIXME: Issue an error.
+    if (theValueVal.isUndef() || oldValueVal.isUndef()) {
+      return false;      
+    }
         
     // Perform the comparison.
     SVal Cmp = Engine.EvalBinOp(stateLoad, BinaryOperator::EQ, theValueVal,