mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Revert accidentally committed local changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48126 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
620d741250
commit
02f693708d
@ -864,7 +864,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
|||||||
CDP.getTargetInfo().getInstruction(getOperator()->getName());
|
CDP.getTargetInfo().getInstruction(getOperator()->getName());
|
||||||
// Apply the result type to the node
|
// Apply the result type to the node
|
||||||
if (NumResults == 0 || InstInfo.NumDefs == 0) {
|
if (NumResults == 0 || InstInfo.NumDefs == 0) {
|
||||||
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
||||||
} else {
|
} else {
|
||||||
Record *ResultNode = Inst.getResult(0);
|
Record *ResultNode = Inst.getResult(0);
|
||||||
|
|
||||||
@ -923,7 +923,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
|||||||
MadeChange |= Child->ApplyTypeConstraints(TP, NotRegisters);
|
MadeChange |= Child->ApplyTypeConstraints(TP, NotRegisters);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ChildNo != getNumChildren() && !InstInfo.isVariadic)
|
if (ChildNo != getNumChildren())
|
||||||
TP.error("Instruction '" + getOperator()->getName() +
|
TP.error("Instruction '" + getOperator()->getName() +
|
||||||
"' was provided too many operands!");
|
"' was provided too many operands!");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user