forked from OSchip/llvm-project
Don't return false when the function's return type is a pointer.
llvm-svn: 166719
This commit is contained in:
parent
27d523580c
commit
41a73b7678
|
@ -1219,7 +1219,7 @@ SubstituteFormalArguments(std::map<std::string, TreePatternNode*> &ArgMap) {
|
||||||
/// PatFrag references.
|
/// PatFrag references.
|
||||||
TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) {
|
TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) {
|
||||||
if (TP.hasError())
|
if (TP.hasError())
|
||||||
return false;
|
return 0;
|
||||||
|
|
||||||
if (isLeaf())
|
if (isLeaf())
|
||||||
return this; // nothing to do.
|
return this; // nothing to do.
|
||||||
|
@ -1248,7 +1248,7 @@ TreePatternNode *TreePatternNode::InlinePatternFragments(TreePattern &TP) {
|
||||||
if (Frag->getNumArgs() != Children.size()) {
|
if (Frag->getNumArgs() != Children.size()) {
|
||||||
TP.error("'" + Op->getName() + "' fragment requires " +
|
TP.error("'" + Op->getName() + "' fragment requires " +
|
||||||
utostr(Frag->getNumArgs()) + " operands!");
|
utostr(Frag->getNumArgs()) + " operands!");
|
||||||
return false;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
TreePatternNode *FragTree = Frag->getOnlyTree()->clone();
|
TreePatternNode *FragTree = Frag->getOnlyTree()->clone();
|
||||||
|
|
Loading…
Reference in New Issue