summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-12-03 22:25:21 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-12-03 22:25:21 +0000
commit9c89ba7fa7179c1ae70a1da2995d1246e95720b3 (patch)
tree4d9536f54d327cddc89b9b8f48f1984150cc4a41 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent27227bb0900ffb9cd6a243c0a38101afc56242b2 (diff)
downloadbcm5719-llvm-9c89ba7fa7179c1ae70a1da2995d1246e95720b3.tar.gz
bcm5719-llvm-9c89ba7fa7179c1ae70a1da2995d1246e95720b3.zip
AMDGPU: remove a couple of unused variables
lib/Target/AMDGPU/SIRegisterInfo.cpp: In member function 'void llvm::SIRegisterInfo::spillSGPR(llvm::MachineBasicBlock::iterator, int, llvm::RegScavenger*) const': lib/Target/AMDGPU/SIRegisterInfo.cpp:572:30: warning: variable 'SubRC' set but not used [-Wunused-but-set-variable] const TargetRegisterClass *SubRC = nullptr; ^ lib/Target/AMDGPU/SIRegisterInfo.cpp: In member function 'void llvm::SIRegisterInfo::restoreSGPR(llvm::MachineBasicBlock::iterator, int, llvm::RegScavenger*) const': lib/Target/AMDGPU/SIRegisterInfo.cpp:723:30: warning: variable 'SubRC' set but not used [-Wunused-but-set-variable] const TargetRegisterClass *SubRC = nullptr; ^ The variable was assigned to, but never used. The functions called did not mutate state. Simplify the logic and remove the variable. Identified by gcc 5.4.0. llvm-svn: 288601
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud