projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59fecec
)
add a sanity check: LegalizeOp should return a value that is the same type
author
Chris Lattner
<sabre@nondot.org>
Sat, 8 Apr 2006 04:13:17 +0000
(
04:13
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 8 Apr 2006 04:13:17 +0000
(
04:13
+0000)
as its input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27528
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index ed6cdb3417f4a6296b173d8cce22c806c916c2d2..7549569636a405409539b40562d2a9e3db10f904 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@
-2688,6
+2688,9
@@
SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
}
}
+ assert(Result.getValueType() == Op.getValueType() &&
+ "Bad legalization!");
+
// Make sure that the generated code is itself legal.
if (Result != Op)
Result = LegalizeOp(Result);