diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-14 21:10:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-14 21:10:15 +0000 |
commit | 523f6a5848194c135168112751c36884dc704e54 (patch) | |
tree | bbe4262ec0a4977a26ef2f7c9e89355c934b7a6f | |
parent | 441a38993e89104c424e00c95cce63c7351f4fc3 (diff) | |
download | external_llvm-523f6a5848194c135168112751c36884dc704e54.zip external_llvm-523f6a5848194c135168112751c36884dc704e54.tar.gz external_llvm-523f6a5848194c135168112751c36884dc704e54.tar.bz2 |
tidy up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96186 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index cf79365..e71b37b 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -768,7 +768,7 @@ TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) { /// references from the register file information, for example. /// static std::vector<unsigned char> getImplicitType(Record *R, bool NotRegisters, - TreePattern &TP) { + TreePattern &TP) { // Some common return values std::vector<unsigned char> Unknown(1, EEVT::isUnknown); std::vector<unsigned char> Other(1, MVT::Other); @@ -845,7 +845,9 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) { if (DefInit *DI = dynamic_cast<DefInit*>(getLeafValue())) { // If it's a regclass or something else known, include the type. return UpdateNodeType(getImplicitType(DI->getDef(), NotRegisters, TP),TP); - } else if (IntInit *II = dynamic_cast<IntInit*>(getLeafValue())) { + } + + if (IntInit *II = dynamic_cast<IntInit*>(getLeafValue())) { // Int inits are always integers. :) bool MadeChange = UpdateNodeType(MVT::iAny, TP); |