mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
Also checks for noResults field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e1a88e8cc
commit
eb1f40d3af
@ -742,8 +742,11 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
||||
|
||||
assert(NumResults <= 1 &&
|
||||
"Only supports zero or one result instrs!");
|
||||
|
||||
CodeGenInstruction &InstInfo =
|
||||
ISE.getTargetInfo().getInstruction(getOperator()->getName());
|
||||
// Apply the result type to the node
|
||||
if (NumResults == 0) {
|
||||
if (NumResults == 0 || InstInfo.noResults) { // FIXME: temporary hack...
|
||||
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
||||
} else {
|
||||
Record *ResultNode = Inst.getResult(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user