[llvm-commits] [llvm] r166719 - /llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Kaelyn Uhrain
rikka at google.com
Thu Oct 25 14:25:08 PDT 2012
Author: rikka
Date: Thu Oct 25 16:25:08 2012
New Revision: 166719
URL: http://llvm.org/viewvc/llvm-project?rev=166719&view=rev
Log:
Don't return false when the function's return type is a pointer.
Modified:
llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=166719&r1=166718&r2=166719&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Thu Oct 25 16:25:08 2012
@@ -1219,7 +1219,7 @@
/// 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 @@
if (Frag->getNumArgs() != Children.size()) {
TP.error("'" + Op->getName() + "' fragment requires " +
utostr(Frag->getNumArgs()) + " operands!");
- return false;
+ return 0;
}
TreePatternNode *FragTree = Frag->getOnlyTree()->clone();
More information about the llvm-commits
mailing list