projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
It appears that somehow we forgot to add support for code variables.
[oota-llvm.git]
/
support
/
tools
/
TableGen
/
Record.cpp
diff --git
a/support/tools/TableGen/Record.cpp
b/support/tools/TableGen/Record.cpp
index 968f367bd7a832f14b85db8aa92e0cbca4aec501..616c790f06b6e33a6ef0a7a45c2e496cf06d0fa6 100644
(file)
--- a/
support/tools/TableGen/Record.cpp
+++ b/
support/tools/TableGen/Record.cpp
@@
-146,6
+146,12
@@
Init *ListRecTy::convertValue(TypedInit *TI) {
return 0;
}
+Init *CodeRecTy::convertValue(TypedInit *TI) {
+ if (TI->getType()->typeIsConvertibleTo(this))
+ return TI;
+ return 0;
+}
+
Init *DagRecTy::convertValue(TypedInit *TI) {
if (TI->getType()->typeIsConvertibleTo(this))
return TI;