[PATCH] D44583: Quiet unused variable warnings in Release builds
David Kreitzer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 16 13:56:20 PDT 2018
DavidKreitzer created this revision.
DavidKreitzer added a reviewer: craig.topper.
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D44583
Files:
lib/CodeGen/MachinePipeliner.cpp
Index: lib/CodeGen/MachinePipeliner.cpp
===================================================================
--- lib/CodeGen/MachinePipeliner.cpp
+++ lib/CodeGen/MachinePipeliner.cpp
@@ -3918,6 +3918,7 @@
std::sort(Indices.begin(), Indices.end(), CompareKey);
bool Valid = true;
+ (void)Valid;
// for each SUnit in the NodeOrder, check whether
// it appears after both a successor and a predecessor
// of the SUnit. If this is the case, and the SUnit
@@ -3932,6 +3933,8 @@
SUnit *Succ;
SUnit *Pred;
+ (void)Succ;
+ (void)Pred;
for (SDep &PredEdge : SU->Preds) {
SUnit *PredSU = PredEdge.getSUnit();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44583.138762.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180316/a8b1dd01/attachment.bin>
More information about the llvm-commits
mailing list