parent
2dd0bf8db0
commit
a1f9c7fb3b
|
@ -1311,6 +1311,11 @@ static bool EvalOSAtomicCompareAndSwap(ExplodedNodeSet<GRState>& Dst,
|
|||
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,
|
||||
oldValueVal, Engine.getContext().IntTy);
|
||||
|
|
Loading…
Reference in New Issue