aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-08 23:26:30 +0000
committerChris Lattner <sabre@nondot.org>2005-09-08 23:26:30 +0000
commit95f6b768174543fd2cc9175aaf3a889e241147c6 (patch)
tree71736745b7bfd417fd6d18f3b3b91c63ecb1a309
parent327076005d608361c9f3b036e9401f14c235a8e3 (diff)
Fix incorrect comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23285 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 555a6341c4..5056e01d04 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -636,15 +636,14 @@ void DAGISelEmitter::ParseAndResolveInstructions() {
// Inline pattern fragments into it.
I->InlinePatternFragments();
- // Infer as many types as possible. Don't worry about it if we don't infer
- // all of them, some may depend on the inputs of the pattern.
+ // Infer as many types as possible. If we cannot infer all of them, we can
+ // never do anything with this instruction pattern: report it to the user.
if (!I->InferAllTypes()) {
I->dump();
I->error("Could not infer all types in pattern!");
}
DEBUG(I->dump());
-
Instructions.push_back(I);
}
}