diff options
| -rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index 2fbc0966f3e..daf63a8dddc 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -556,6 +556,8 @@ static std::vector<unsigned char> getIntrinsicType(Record *R, bool NotRegisters, // Using a VTSDNode or CondCodeSDNode. return Other; } else if (R->isSubClassOf("ComplexPattern")) { + if (NotRegisters) + return Unknown; std::vector<unsigned char> ComplexPat(1, TP.getDAGISelEmitter().getComplexPattern(R).getValueType()); return ComplexPat; |

