From b1501462e2ecbd2c31b19a270c2e9c800dda6c3d Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Tue, 6 Nov 2018 08:59:25 +0000 Subject: [PATCH] T was unused on assertion disabled builds. llvm-svn: 346216 --- clang/lib/CodeGen/CGBuiltin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index a42c7eb85f9c..c6d270567a1a 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -249,12 +249,13 @@ static Value *MakeAtomicCmpXchgValue(CodeGenFunction &CGF, const CallExpr *E, static Value *EmitAtomicCmpXchgForMSIntrin(CodeGenFunction &CGF, const CallExpr *E, AtomicOrdering SuccessOrdering = AtomicOrdering::SequentiallyConsistent) { - auto T = E->getType(); assert(E->getArg(0)->getType()->isPointerType()); - assert(CGF.getContext().hasSameUnqualifiedType(T, - E->getArg(0)->getType()->getPointeeType())); - assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType())); - assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(2)->getType())); + assert(CGF.getContext().hasSameUnqualifiedType( + E->getType(), E->getArg(0)->getType()->getPointeeType())); + assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), + E->getArg(1)->getType())); + assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), + E->getArg(2)->getType())); auto *Destination = CGF.EmitScalarExpr(E->getArg(0)); auto *Comparand = CGF.EmitScalarExpr(E->getArg(2));