mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Don't return false when the function's return type is a pointer.
llvm-svn: 166719
This commit is contained in:
parent
58110e0478
commit
2a749e70d9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user