summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:43:45 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:43:45 +0000
commitc0197066d786db4d04baadacfb3a88244e0026f4 (patch)
treeea22ebe63d7242d8cd4be2bc5406652378d72bd2 /llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
parent0774ea267a2cae366a33434e2a0536db6428c3dc (diff)
downloadbcm5719-llvm-c0197066d786db4d04baadacfb3a88244e0026f4.tar.gz
bcm5719-llvm-c0197066d786db4d04baadacfb3a88244e0026f4.zip
Move value type list from TargetRegisterClass to TargetRegisterInfo
Differential Revision: https://reviews.llvm.org/D31937 llvm-svn: 301231
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index e85d1951e3a..1c64e9c0219 100644
--- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -161,7 +161,8 @@ EmitCopyFromReg(SDNode *Node, unsigned ResNo, bool IsClone, bool IsCloned,
if (VRBase) {
DstRC = MRI->getRegClass(VRBase);
} else if (UseRC) {
- assert(UseRC->hasType(VT) && "Incompatible phys register def and uses!");
+ assert(TRI->hasType(*UseRC, VT) &&
+ "Incompatible phys register def and uses!");
DstRC = UseRC;
} else {
DstRC = TLI->getRegClassFor(VT);
OpenPOWER on IntegriCloud