summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-04-24 19:48:51 +0000
commit98ab4c64c429583a097adf98ae35ac4dd1dc2556 (patch)
tree70bfc17504073c2113cb0bc4fc6a5a8d9dfee583 /llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
parentc0197066d786db4d04baadacfb3a88244e0026f4 (diff)
downloadbcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.tar.gz
bcm5719-llvm-98ab4c64c429583a097adf98ae35ac4dd1dc2556.zip
Revert r301231: Accidentally committed stale files
I forgot to commit local changes before commit. llvm-svn: 301232
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
index 1c64e9c0219..e85d1951e3a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp
@@ -161,8 +161,7 @@ EmitCopyFromReg(SDNode *Node, unsigned ResNo, bool IsClone, bool IsCloned,
if (VRBase) {
DstRC = MRI->getRegClass(VRBase);
} else if (UseRC) {
- assert(TRI->hasType(*UseRC, VT) &&
- "Incompatible phys register def and uses!");
+ assert(UseRC->hasType(VT) && "Incompatible phys register def and uses!");
DstRC = UseRC;
} else {
DstRC = TLI->getRegClassFor(VT);
OpenPOWER on IntegriCloud