summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-11-11 13:54:21 +0530
committerMatt Arsenault <arsenm2@gmail.com>2019-11-11 14:42:33 +0530
commite6c9a9af398baf40537d45498e0aaf417c1306dc (patch)
treeac5edc00a9ea9491555e3bd37ed9041e751a638b /llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
parenta26d7b629823bfb502d65e10c75e78754c5970d2 (diff)
downloadbcm5719-llvm-e6c9a9af398baf40537d45498e0aaf417c1306dc.tar.gz
bcm5719-llvm-e6c9a9af398baf40537d45498e0aaf417c1306dc.zip
Use MCRegister in copyPhysReg
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
index 8e8126c90e7..b60fd6f687f 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
@@ -54,8 +54,8 @@ bool WebAssemblyInstrInfo::isReallyTriviallyReMaterializable(
void WebAssemblyInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator I,
- const DebugLoc &DL, unsigned DestReg,
- unsigned SrcReg, bool KillSrc) const {
+ const DebugLoc &DL, MCRegister DestReg,
+ MCRegister SrcReg, bool KillSrc) const {
// This method is called by post-RA expansion, which expects only pregs to
// exist. However we need to handle both here.
auto &MRI = MBB.getParent()->getRegInfo();
OpenPOWER on IntegriCloud