[llvm] r329258 - [MIR-Canon] Fixing warnings in Non-assert builds.
Puyan Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 4 23:56:44 PDT 2018
Author: zer0
Date: Wed Apr 4 23:56:44 2018
New Revision: 329258
URL: http://llvm.org/viewvc/llvm-project?rev=329258&view=rev
Log:
[MIR-Canon] Fixing warnings in Non-assert builds.
Modified:
llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
Modified: llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp?rev=329258&r1=329257&r2=329258&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRCanonicalizerPass.cpp Wed Apr 4 23:56:44 2018
@@ -484,7 +484,7 @@ GetVRegRenameMap(const std::vector<Typed
// (especially when comparing SelectionDAG to GlobalISel generated MIR)
// that in the other file we are just getting an incoming vreg that comes
// from a copy from a frame index. So it's safe to skip by one.
- unsigned LastRenameReg = NVC.incrementVirtualVReg();
+ unsigned LastRenameReg = NVC.incrementVirtualVReg(); (void)LastRenameReg;
DEBUG(dbgs() << "Skipping rename for FI " << LastRenameReg << "\n";);
continue;
} else if (vreg.isCandidate()) {
@@ -500,7 +500,7 @@ GetVRegRenameMap(const std::vector<Typed
FirstCandidate = false;
continue;
} else if (!TargetRegisterInfo::isVirtualRegister(vreg.getReg())) {
- unsigned LastRenameReg = NVC.incrementVirtualVReg();
+ unsigned LastRenameReg = NVC.incrementVirtualVReg(); (void)LastRenameReg;
DEBUG({
dbgs() << "Skipping rename for Phys Reg " << LastRenameReg << "\n";
});
More information about the llvm-commits
mailing list