projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Emit an error instead of an assertion if trying to do bogus things in result patterns.
[oota-llvm.git]
/
utils
/
TableGen
/
DAGISelEmitter.cpp
diff --git
a/utils/TableGen/DAGISelEmitter.cpp
b/utils/TableGen/DAGISelEmitter.cpp
index 9668ab4ede33af7b20af16c5e4d14547693a7b97..75780c4d3ed0c23ff050a99290e595abfd6129d2 100644
(file)
--- a/
utils/TableGen/DAGISelEmitter.cpp
+++ b/
utils/TableGen/DAGISelEmitter.cpp
@@
-2281,8
+2281,8
@@
public:
return std::make_pair(1, ResNo);
} else {
N->dump();
-
assert(0 && "Unknown node in result pattern!")
;
-
return std::make_pair(1, ~0U
);
+
std::cerr << "\n"
;
+
throw std::string("Unknown node in result pattern!"
);
}
}