diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-10-25 21:25:08 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-10-25 21:25:08 +0000 |
commit | 50a6102397ca0b2346befeac09299f1fa6b3ca3e (patch) | |
tree | cc8315dcd993094a2973d6ccdc0d703ca2f376ec | |
parent | 402a4d616f501371ae255a7b98528b1c63375ba6 (diff) | |
download | external_llvm-50a6102397ca0b2346befeac09299f1fa6b3ca3e.zip external_llvm-50a6102397ca0b2346befeac09299f1fa6b3ca3e.tar.gz external_llvm-50a6102397ca0b2346befeac09299f1fa6b3ca3e.tar.bz2 |
Don't return false when the function's return type is a pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166719 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/CodeGenDAGPatterns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CodeGenDAGPatterns.cpp b/utils/TableGen/CodeGenDAGPatterns.cpp index 568a40c..d5b581b 100644 --- a/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/utils/TableGen/CodeGenDAGPatterns.cpp @@ -1219,7 +1219,7 @@ SubstituteFormalArguments(std::map<std::string, TreePatternNode*> &ArgMap) { /// PatFrag references. TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) { if (TP.hasError()) - return false; + return 0; if (isLeaf()) return this; // nothing to do. @@ -1248,7 +1248,7 @@ TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) { if (Frag->getNumArgs() != Children.size()) { TP.error("'" + Op->getName() + "' fragment requires " + utostr(Frag->getNumArgs()) + " operands!"); - return false; + return 0; } TreePatternNode *FragTree = Frag->getOnlyTree()->clone(); |