llvm.org GIT mirror llvm / 50a6102
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 Kaelyn Uhrain 8 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
12181218 /// PatFrag references.
12191219 TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) {
12201220 if (TP.hasError())
1221 return false;
1221 return 0;
12221222
12231223 if (isLeaf())
12241224 return this; // nothing to do.
12471247 if (Frag->getNumArgs() != Children.size()) {
12481248 TP.error("'" + Op->getName() + "' fragment requires " +
12491249 utostr(Frag->getNumArgs()) + " operands!");
1250 return false;
1250 return 0;
12511251 }
12521252
12531253 TreePatternNode *FragTree = Frag->getOnlyTree()->clone();