Skip to content

Commit

Permalink
Fix up an unused variable warning caused by TRI->isVirtualRegister() …
Browse files Browse the repository at this point in the history
…-> Register::isVirtualRegister()

llvm-svn: 367637
  • Loading branch information
dsandersllvm committed Aug 2, 2019
1 parent 1055a11 commit 12961ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ bool LinearizedRegion::hasNoDef(unsigned Reg, MachineRegisterInfo *MRI) {
// 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) {
Expand Down

0 comments on commit 12961ff

Please sign in to comment.