* Added an explicit type field to ComplexPattern.
* Renamed MatchingNodes to RootNodes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24636 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index d4d4187..b16bc88 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -335,7 +335,9 @@
 // ComplexPattern implementation
 //
 ComplexPattern::ComplexPattern(Record *R) {
-  NumOperands   = R->getValueAsInt("NumOperands");
-  SelectFunc    = R->getValueAsString("SelectFunc");
-  MatchingNodes = R->getValueAsListOfDefs("MatchingNodes");
+  Ty          = ::getValueType(R->getValueAsDef("Ty"));
+  NumOperands = R->getValueAsInt("NumOperands");
+  SelectFunc  = R->getValueAsString("SelectFunc");
+  RootNodes   = R->getValueAsListOfDefs("RootNodes");
 }
+