[polly] Fix -Wunused-lambda-capture and -Wunused-variable
authorFangrui Song <i@maskray.me>
Tue, 3 Nov 2020 04:35:26 +0000 (20:35 -0800)
committerFangrui Song <i@maskray.me>
Tue, 3 Nov 2020 04:35:26 +0000 (20:35 -0800)
polly/lib/Transform/ForwardOpTree.cpp

index 141ac26..f2cb80d 100644 (file)
@@ -487,6 +487,7 @@ public:
         LLVM_DEBUG(
             dbgs() << "    forwarded known load with preexisting MemoryAccess"
                    << Access << "\n");
+        (void)Access;
 
         NumKnownLoadsForwarded++;
         TotalKnownLoadsForwarded++;
@@ -574,6 +575,7 @@ public:
       MemoryAccess *Access = makeReadArrayAccess(TargetStmt, LI, SameVal);
       LLVM_DEBUG(dbgs() << "    forwarded known load with new MemoryAccess"
                         << Access << "\n");
+      (void)Access;
 
       if (LocalTranslator)
         Translator = Translator.add_map(LocalTranslator);