[llvm] r367637 - Fix up an unused variable warning caused by TRI->isVirtualRegister() -> Register::isVirtualRegister()

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 17:17:48 PDT 2019


Author: dsanders
Date: Thu Aug  1 17:17:48 2019
New Revision: 367637

URL: http://llvm.org/viewvc/llvm-project?rev=367637&view=rev
Log:
Fix up an unused variable warning caused by TRI->isVirtualRegister() -> Register::isVirtualRegister()

Modified:
    llvm/trunk/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp?rev=367637&r1=367636&r2=367637&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp Thu Aug  1 17:17:48 2019
@@ -1016,6 +1016,8 @@ bool LinearizedRegion::hasNoDef(unsigned
 // before are no longer register kills.
 void LinearizedRegion::removeFalseRegisterKills(MachineRegisterInfo *MRI) {
   const TargetRegisterInfo *TRI = MRI->getTargetRegisterInfo();
+  (void)TRI; // It's used by LLVM_DEBUG.
+
   for (auto MBBI : MBBs) {
     MachineBasicBlock *MBB = MBBI;
     for (auto &II : *MBB) {




More information about the llvm-commits mailing list