Fix an unused-variable warning in release build, NFC
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 8 Dec 2022 08:56:32 +0000 (09:56 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 8 Dec 2022 08:56:32 +0000 (09:56 +0100)
llvm/lib/Transforms/IPO/AttributorAttributes.cpp

index 00aff15..e8253cb 100644 (file)
@@ -3722,8 +3722,8 @@ struct AAIsDeadFloating : public AAIsDeadValueImpl {
       // still needed.
       if (auto *SI = dyn_cast<StoreInst>(I)) {
         SmallSetVector<Instruction *, 8> AssumeOnlyInst;
-        bool IsDead = isDeadStore(A, *SI, &AssumeOnlyInst);
-        assert(IsDead && "Store was assumed to be dead!");
+        assert(isDeadStore(A, *SI, &AssumeOnlyInst) &&
+               "Store was assumed to be dead!");
         A.deleteAfterManifest(*I);
         for (size_t i = 0; i < AssumeOnlyInst.size(); ++i) {
           Instruction *AOI = AssumeOnlyInst[i];