summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2008-03-11 09:33:47 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2008-03-11 09:33:47 +0000
commita731239c30c76bd1e774b5a462b45db590303d24 (patch)
treebf9a3efb39045ec5c904023cdf6101bbb86ff92b /llvm/utils/TableGen/CodeGenInstruction.cpp
parentd54660aeed98c475a79171195dad6937ac9eabe0 (diff)
downloadbcm5719-llvm-a731239c30c76bd1e774b5a462b45db590303d24.tar.gz
bcm5719-llvm-a731239c30c76bd1e774b5a462b45db590303d24.zip
Recommitting changes after more testing. These appear to cause no problems.
llvm-svn: 48222
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp
index 0ee6b41d908..8b706479077 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.cpp
+++ b/llvm/utils/TableGen/CodeGenInstruction.cpp
@@ -163,7 +163,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
isVariadic = true;
continue;
} else if (!Rec->isSubClassOf("RegisterClass") &&
- Rec->getName() != "ptr_rc")
+ Rec->getName() != "ptr_rc" && Rec->getName() != "unknown")
throw "Unknown operand class '" + Rec->getName() +
"' in instruction '" + R->getName() + "' instruction!";
OpenPOWER on IntegriCloud