mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
Remove dead function with incredibly broken assert.
Found by clang-tidy's misc-assert-side-effect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271887 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67708909d0
commit
ad53d4da9e
@ -80,12 +80,6 @@ class WebAssemblyFunctionInfo final : public MachineFunctionInfo {
|
||||
assert(TargetRegisterInfo::virtReg2Index(Reg) < WARegs.size());
|
||||
return WARegs[TargetRegisterInfo::virtReg2Index(Reg)];
|
||||
}
|
||||
// If new virtual registers are created after initWARegs has been called,
|
||||
// this function can be used to add WebAssembly register mappings for them.
|
||||
void addWAReg(unsigned VReg, unsigned WAReg) {
|
||||
assert(VReg = WARegs.size());
|
||||
WARegs.push_back(WAReg);
|
||||
}
|
||||
|
||||
// For a given stackified WAReg, return the id number to print with push/pop.
|
||||
static unsigned getWARegStackId(unsigned Reg) {
|
||||
|
Loading…
Reference in New Issue
Block a user