summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-08-16 07:30:09 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-08-16 07:30:09 +0000
commit23329f5e0366af7cd9a96572ed8d6322696e5846 (patch)
treee07e79622c36c6e0c9cb422939fde84125070bab /utils
parent4b790573f7c7e5652588b79c6648f5b8fc0ddd84 (diff)
downloadllvm-23329f5e0366af7cd9a96572ed8d6322696e5846.tar.gz
llvm-23329f5e0366af7cd9a96572ed8d6322696e5846.tar.bz2
llvm-23329f5e0366af7cd9a96572ed8d6322696e5846.tar.xz
SelectNodeTo() may return a SDOperand that is different from the input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 191672f6bb..a3851053c6 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -2794,8 +2794,6 @@ public:
if (NodeHasInFlag || HasImpInputs)
Code += ", InFlag";
emitCode(Code + ");");
- if (isRoot)
- emitCode(" return NULL;");
emitCode("} else {");
emitDecl("ResNode", 1);
Code = " ResNode = CurDAG->getTargetNode(Opc" + utostr(OpcNo);
@@ -2812,9 +2810,8 @@ public:
Code += ", InFlag";
emitCode(Code + ");");
emitCode(" Result = SDOperand(ResNode, 0);");
- if (isRoot)
- emitCode(" return Result.Val;");
emitCode("}");
+ emitCode("return Result.Val;");
}
return std::make_pair(1, ResNo);