aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2016-02-28 15:33:53 +0000
committerJF Bastien <jfb@google.com>2016-02-28 15:33:53 +0000
commit1afd1e2baabaabba5cdbabe308e74a96777d4a37 (patch)
treeba20de096f70ff369d461af7630931faca048aea /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
parent3267ca225d19aecdae43843905851c3ebf823b1d (diff)
downloadllvm-1afd1e2baabaabba5cdbabe308e74a96777d4a37.zip
llvm-1afd1e2baabaabba5cdbabe308e74a96777d4a37.tar.gz
llvm-1afd1e2baabaabba5cdbabe308e74a96777d4a37.tar.bz2
WebAssembly: fix build
More API churn, experimental target got sad. llvm-svn: 262179
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
index 27ef0db..5c65998 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
@@ -188,7 +188,7 @@ static MachineInstr *MoveForSingleUse(unsigned Reg, MachineInstr *Def,
MachineInstr *Insert, LiveIntervals &LIS,
WebAssemblyFunctionInfo &MFI) {
MBB.splice(Insert, &MBB, Def);
- LIS.handleMove(Def);
+ LIS.handleMove(*Def);
MFI.stackifyVReg(Reg);
ImposeStackOrdering(Def);
return Def;
@@ -251,7 +251,7 @@ static MachineInstr *MoveAndTeeForMultiUse(
MachineInstr *Insert, LiveIntervals &LIS, WebAssemblyFunctionInfo &MFI,
MachineRegisterInfo &MRI, const WebAssemblyInstrInfo *TII) {
MBB.splice(Insert, &MBB, Def);
- LIS.handleMove(Def);
+ LIS.handleMove(*Def);
const auto *RegClass = MRI.getRegClass(Reg);
unsigned NewReg = MRI.createVirtualRegister(RegClass);
unsigned TeeReg = MRI.createVirtualRegister(RegClass);