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:
8f36f6d
)
Fix the index calculations for the extractvalue lowering code.
author
Dan Gohman
<gohman@apple.com>
Fri, 20 Jun 2008 00:54:19 +0000
(
00:54
+0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 20 Jun 2008 00:54:19 +0000
(
00:54
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52517
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 85a42d45d41b8062dfe31880973e1cbc6def9cfd..a2e0a06beb4563e6c673b0ffe42f52d692f4c8ed 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-2739,8
+2739,8
@@
void SelectionDAGLowering::visitExtractValue(ExtractValueInst &I) {
// Copy out the selected value(s).
for (unsigned i = LinearIndex; i != LinearIndex + NumValValues; ++i)
Values[i - LinearIndex] =
- OutOfUndef ? DAG.getNode(ISD::UNDEF, Agg.Val->getValueType(i)) :
- SDOperand(Agg.Val, Agg.ResNo + i
- LinearIndex
);
+ OutOfUndef ? DAG.getNode(ISD::UNDEF, Agg.Val->getValueType(
Agg.ResNo +
i)) :
+ SDOperand(Agg.Val, Agg.ResNo + i);
setValue(&I, DAG.getNode(ISD::MERGE_VALUES,
DAG.getVTList(&ValValueVTs[0], NumValValues),