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:
b36904b
)
Correctly extract the ValueType from a VTSDNode.
author
Duncan Sands
<baldrick@free.fr>
Thu, 25 Oct 2007 12:30:51 +0000
(12:30 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Thu, 25 Oct 2007 12:30:51 +0000
(12:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43339
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
index e5f8edd57d8f7ff0576fb34e4deba0260de399af..5e5b07443ec865252354400606bb8716140963c3 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
+++ b/
lib/CodeGen/SelectionDAG/LegalizeDAGTypes.cpp
@@
-903,7
+903,7
@@
void DAGTypeLegalizer::ExpandResult_BIT_CONVERT(SDNode *N,
void DAGTypeLegalizer::
ExpandResult_SIGN_EXTEND_INREG(SDNode *N, SDOperand &Lo, SDOperand &Hi) {
GetExpandedOp(N->getOperand(0), Lo, Hi);
- MVT::ValueType EVT =
N->getOperand(1).getValueType
();
+ MVT::ValueType EVT =
cast<VTSDNode>(N->getOperand(1))->getVT
();
if (MVT::getSizeInBits(EVT) <= MVT::getSizeInBits(Lo.getValueType())) {
// sext_inreg the low part if needed.