T was unused on assertion disabled builds.

llvm-svn: 346216
This commit is contained in:
Kadir Cetinkaya 2018-11-06 08:59:25 +00:00
parent 178d26fa18
commit b1501462e2
1 changed files with 6 additions and 5 deletions

View File

@ -249,12 +249,13 @@ static Value *MakeAtomicCmpXchgValue(CodeGenFunction &CGF, const CallExpr *E,
static static
Value *EmitAtomicCmpXchgForMSIntrin(CodeGenFunction &CGF, const CallExpr *E, Value *EmitAtomicCmpXchgForMSIntrin(CodeGenFunction &CGF, const CallExpr *E,
AtomicOrdering SuccessOrdering = AtomicOrdering::SequentiallyConsistent) { AtomicOrdering SuccessOrdering = AtomicOrdering::SequentiallyConsistent) {
auto T = E->getType();
assert(E->getArg(0)->getType()->isPointerType()); assert(E->getArg(0)->getType()->isPointerType());
assert(CGF.getContext().hasSameUnqualifiedType(T, assert(CGF.getContext().hasSameUnqualifiedType(
E->getArg(0)->getType()->getPointeeType())); E->getType(), E->getArg(0)->getType()->getPointeeType()));
assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType())); assert(CGF.getContext().hasSameUnqualifiedType(E->getType(),
assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(2)->getType())); E->getArg(1)->getType()));
assert(CGF.getContext().hasSameUnqualifiedType(E->getType(),
E->getArg(2)->getType()));
auto *Destination = CGF.EmitScalarExpr(E->getArg(0)); auto *Destination = CGF.EmitScalarExpr(E->getArg(0));
auto *Comparand = CGF.EmitScalarExpr(E->getArg(2)); auto *Comparand = CGF.EmitScalarExpr(E->getArg(2));