From: Fangrui Song Date: Tue, 3 Nov 2020 04:35:26 +0000 (-0800) Subject: [polly] Fix -Wunused-lambda-capture and -Wunused-variable X-Git-Tag: llvmorg-13-init~7312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98031b664c94c3266303978de093feb3502f4527;p=platform%2Fupstream%2Fllvm.git [polly] Fix -Wunused-lambda-capture and -Wunused-variable --- diff --git a/polly/lib/Transform/ForwardOpTree.cpp b/polly/lib/Transform/ForwardOpTree.cpp index 141ac26..f2cb80d 100644 --- a/polly/lib/Transform/ForwardOpTree.cpp +++ b/polly/lib/Transform/ForwardOpTree.cpp @@ -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);